[StructLayout(La youtKind.Sequen tial)]
struct MyStruct
{
public int Number;
}
[StructLayout(La youtKind.Sequen tial)]
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(La youtKind.Sequen tial)]
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
Comment