Why if i use:
struct MyStruct
{
[FieldOffset (0)] public uint Data;
[FieldOffset (0)] public byte Something;
}
public MyStruct (uint pData)
{
Data = pData; // setting Data field also sets Something field
}
C# says i need to assign 'Something' field :/ I know I can do a "Constructor : this ()" but compiler should know 'Data' field contains 'Something' field.
So, I should call parameterless constructor first, is it the only way?