Click here to Skip to main content
15,892,005 members
Home / Discussions / C#
   

C#

 
GeneralRe: use pointers in c# Pin
leppie16-Aug-03 4:34
leppie16-Aug-03 4:34 
GeneralRe: use pointers in c# Pin
Ista16-Aug-03 8:02
Ista16-Aug-03 8:02 
GeneralRe: use pointers in c# Pin
leppie16-Aug-03 10:41
leppie16-Aug-03 10:41 
GeneralRe: use pointers in c# Pin
Ista16-Aug-03 12:06
Ista16-Aug-03 12:06 
GeneralRe: use pointers in c# Pin
J. Dunlap16-Aug-03 12:23
J. Dunlap16-Aug-03 12:23 
GeneralRe: use pointers in c# Pin
Ista16-Aug-03 15:37
Ista16-Aug-03 15:37 
GeneralRe: use pointers in c# Pin
J. Dunlap16-Aug-03 16:51
J. Dunlap16-Aug-03 16:51 
GeneralRe: use pointers in c# Pin
Ista16-Aug-03 15:49
Ista16-Aug-03 15:49 
jdunlap wrote:
If you want to change items in Collection A, so that you're actually changing what's in Collection A, not just the objects themselves, the best thing to do is have Collection B store the indexes of the elements in Collection A, so that you can modify Collection A's contents based on the indexes stored in collection A.

I mean yeah I could override the indexers to pass through but I don't like that pattern. I would much rather access an array of pointers instead. I mean that is simplistic c++ code rather than having object forwarding with extra type casting and the whole works.

I mean if I have to take the time to write a collection that then accesses another collection based on its index or an object type. Then theres much more debugging involved and if I do indexof then it compares objects and that defeats the whole purpose of it all. That and it involves more coding.

Using a collection or array of pointers doesnt create a mess of code and I can simply check the value to see if its actually pointing to a null address which is one line of code to debug. That and if the object is changed to be a new one the address wont repeat itself while an index could.

My thoughts and opinions about this whole thing.

So how do you declare a c++ code block in c#. I know its possible but dont know how to set it up?

nick

I'm not an expert yet, but I play one at work. Yeah and here too.
GeneralRe: use pointers in c# Pin
Nish Nishant16-Aug-03 16:55
sitebuilderNish Nishant16-Aug-03 16:55 
GeneralRe: use pointers in c# Pin
J. Dunlap16-Aug-03 16:58
J. Dunlap16-Aug-03 16:58 
GeneralRe: use pointers in c# Pin
Ista16-Aug-03 16:59
Ista16-Aug-03 16:59 
GeneralRe: use pointers in c# Pin
Nish Nishant16-Aug-03 16:53
sitebuilderNish Nishant16-Aug-03 16:53 
GeneralRe: use pointers in c# Pin
Ista16-Aug-03 16:55
Ista16-Aug-03 16:55 
GeneralRe: use pointers in c# Pin
Nish Nishant16-Aug-03 17:01
sitebuilderNish Nishant16-Aug-03 17:01 
GeneralRe: use pointers in c# Pin
Burt Harris16-Aug-03 17:28
Burt Harris16-Aug-03 17:28 
GeneralRe: use pointers in c# Pin
Ista16-Aug-03 18:38
Ista16-Aug-03 18:38 
GeneralRe: use pointers in c# Pin
J. Dunlap16-Aug-03 19:08
J. Dunlap16-Aug-03 19:08 
GeneralRe: use pointers in c# Pin
Ista16-Aug-03 19:09
Ista16-Aug-03 19:09 
GeneralRe: use pointers in c# Pin
J. Dunlap16-Aug-03 19:12
J. Dunlap16-Aug-03 19:12 
GeneralRe: use pointers in c# Pin
Ista16-Aug-03 19:14
Ista16-Aug-03 19:14 
GeneralJFrame in C# Pin
User 53137816-Aug-03 3:36
User 53137816-Aug-03 3:36 
GeneralRe: JFrame in C# Pin
Ista16-Aug-03 4:16
Ista16-Aug-03 4:16 
Generalthe Form like Taskbar Pin
horsewww16-Aug-03 2:44
horsewww16-Aug-03 2:44 
GeneralRe: the Form like Taskbar Pin
apferreira16-Aug-03 3:06
apferreira16-Aug-03 3:06 
QuestionHow to convert from .DOC to .PDF, please help me .......... Pin
Atif Bashir16-Aug-03 2:22
Atif Bashir16-Aug-03 2:22 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.