M
Mythran
[StructLayout(LayoutKind.Sequential)]
struct MyStruct
{
public int Number;
}
[StructLayout(LayoutKind.Sequential)]
struct MyStruct
{
private int mNumber;
public int Number
{
get {
return mNumber;
}
set {
mNumber = value;
}
}
}
For PInvoke calls, are the two structures above interchangeable? If a
structure is defined as the first MyStruct, can I use an instance of the 2nd
MyStruct?
Thanks,
Mythran
struct MyStruct
{
public int Number;
}
[StructLayout(LayoutKind.Sequential)]
struct MyStruct
{
private int mNumber;
public int Number
{
get {
return mNumber;
}
set {
mNumber = value;
}
}
}
For PInvoke calls, are the two structures above interchangeable? If a
structure is defined as the first MyStruct, can I use an instance of the 2nd
MyStruct?
Thanks,
Mythran