"Maksim" <Ma****@discussions.microsoft.com> wrote in message
news:A3**********************************@microsof t.com...
I'm trying to imprort an AVL Tree written in C++ to C# and I have a
problem
translating this statement: root_parent = (Node *) &this->_Root
I'm using classes for my Nodes and so I can't use '&' with classes. So how
do I write this in C#?
something like
root_parent = this._Root;
C# classes are already reference types, that is the varaible you are using
is holding a reference to the instance, not the instance itself, so there is
no need to take the address of a class and don't have to play the pointer
game.