B Bumbala Mar 13, 2007 #1 Hello, Is it possible to initialize non-static members inside a value class (structure) ? Thanks.
B Ben Voigt Mar 13, 2007 #2 Bumbala said: Hello, Is it possible to initialize non-static members inside a value class (structure) ? Thanks. Click to expand... No. The constructor for a .NET value type isn't guaranteed to be called, so it's forbidden to define a default constructor, copy constructor, assignment operator, etc.
Bumbala said: Hello, Is it possible to initialize non-static members inside a value class (structure) ? Thanks. Click to expand... No. The constructor for a .NET value type isn't guaranteed to be called, so it's forbidden to define a default constructor, copy constructor, assignment operator, etc.