P
PseudoBill
I'm trying to convert some Managed C++ code to C# and I'm having
trouble figuring out what can be converted to regular C#-style
references (i.e., just dropping the "*" or "&" and replacing
"->" with ".") and what is truly 'unsafe' code (i.e., where I
should leave the "*", "&", "->" as they are and mark the block
unsafe).
What would the C# version of the following 4 declarations and method
calls be?
//a lot of String declarations done this way:
SomeValueType *x1;
x1->Method1();
SomeNonValueType *x2 = new SomeNonValueType();
x2->Method2();
SomeValueType &x3;
x3.Method3();
SomeNonValueType &x4 = *new SomeNonValueType();
x4.Method4();
*-----------------------*
Posted at:
www.GroupSrv.com
*-----------------------*
trouble figuring out what can be converted to regular C#-style
references (i.e., just dropping the "*" or "&" and replacing
"->" with ".") and what is truly 'unsafe' code (i.e., where I
should leave the "*", "&", "->" as they are and mark the block
unsafe).
What would the C# version of the following 4 declarations and method
calls be?
//a lot of String declarations done this way:
SomeValueType *x1;
x1->Method1();
SomeNonValueType *x2 = new SomeNonValueType();
x2->Method2();
SomeValueType &x3;
x3.Method3();
SomeNonValueType &x4 = *new SomeNonValueType();
x4.Method4();
*-----------------------*
Posted at:
www.GroupSrv.com
*-----------------------*