how to define a node "link node" in c#
c# pointers
Collapse
X
-
This is really not a question... Please read this thread on posting guidlines.
But to answer you, If you want to use linked nodes, you are probably trying to build a linked list. The LinkedList Class is already defined in the .net library.
Using pointers in managed code (.NET, JAVA) undermines the whole point of having managed code. Pointers can be used in C# but this is in rare cases. The pre-defined Generic Collections of .NET are already optimized and do not need further memory management. Check this MSDN entry on the existing .NET collections, these collections will be sufficient for almost all your programming needs. I suggest using one of them before defining custom collection classes especially if it will involve writing un-managed code.
Comment