P
Peter Demeyer
I can't manage to define a simple pointer to an array.
The following C++ code doesn't work in C# (compiler error: "You can
only take the address of unfixed expression inside of a fixed statement
initializer")
Int32 *pointer;
int []array = new int[100];
pointer = &array[0];
Can anyone please instruct me how to do this properly in C#?
Thanks,
Peter
The following C++ code doesn't work in C# (compiler error: "You can
only take the address of unfixed expression inside of a fixed statement
initializer")
Int32 *pointer;
int []array = new int[100];
pointer = &array[0];
Can anyone please instruct me how to do this properly in C#?
Thanks,
Peter