G
Gianco
Hello people
I have the following problem, probably it has an easy solution but I
don't know how to solve it:
There's a structure with many fields, with this structure I create a
variable named, for instance 'A'. Then I create a second variable
named 'B'. I would save the complete content of A into B with one or
few commands (not copying field by field) and, later, check if A is
different from B, with C/C++ is very easy, first I make a memcpy of A
into B then, to see if something is different I can use the memcmp
How can do it with C#?
If I write 'B = A' B is just referenced to A so when I change
something into A, B has always the same content of A. And when I
compare A to B with 'if (A == B)' it gives me always true...
Sorry for the banal question, thanks in advance to anyone can help me
Gianco
I have the following problem, probably it has an easy solution but I
don't know how to solve it:
There's a structure with many fields, with this structure I create a
variable named, for instance 'A'. Then I create a second variable
named 'B'. I would save the complete content of A into B with one or
few commands (not copying field by field) and, later, check if A is
different from B, with C/C++ is very easy, first I make a memcpy of A
into B then, to see if something is different I can use the memcmp
How can do it with C#?
If I write 'B = A' B is just referenced to A so when I change
something into A, B has always the same content of A. And when I
compare A to B with 'if (A == B)' it gives me always true...
Sorry for the banal question, thanks in advance to anyone can help me
Gianco