B
bozzzza
Consider:
struct myStructA
{
public unsafe fixed byte pA[10];
}
struct myStructB
{
public unsafe fixed byte pB[10];
}
unsafe class test
{
myStructA* A;
myStructB* B;
public void movePointer()
{
A->pA = B->pB;
}
}
The Compiler informs me The left-hand side of an assignment must be a
variable, property or indexer
Of course I could access the array using array notation, but that
would be longer than using pointer notation.
I have tried the same sort of thing using native C++ and that lets me
do it. Is there away I can get around this issue?
struct myStructA
{
public unsafe fixed byte pA[10];
}
struct myStructB
{
public unsafe fixed byte pB[10];
}
unsafe class test
{
myStructA* A;
myStructB* B;
public void movePointer()
{
A->pA = B->pB;
}
}
The Compiler informs me The left-hand side of an assignment must be a
variable, property or indexer
Of course I could access the array using array notation, but that
would be longer than using pointer notation.
I have tried the same sort of thing using native C++ and that lets me
do it. Is there away I can get around this issue?