, , ( ).
, IlAsm, MSIL, , initobj.
Absence is initobjexcellent if the structure Vector2contains only value types. In the end, it's just a raw memory. However, if the structure Vector2also contains a link, it must be initialized to exclude an uninitialized reference to the object.
To avoid returning a partially unified object, you need to explicitly write an event handler triggeror initialize the entire object with a new operation. However, the structure of the structure in no case becomes a reference type.
source
share