T
tsteinke
Doe anyone know the way to explicitly call the varible initializers on
an object?
for instance
Class A
{
private int a=123;
}
object shell=FormatterServices.GetUninitializedObject(typeof(A));
// Here is where I want to run the value initalizers to fill in a
I know the framework does this to initalize NonSerilized Fields during
deserilization.
Any help appreciated
Tom
an object?
for instance
Class A
{
private int a=123;
}
object shell=FormatterServices.GetUninitializedObject(typeof(A));
// Here is where I want to run the value initalizers to fill in a
I know the framework does this to initalize NonSerilized Fields during
deserilization.
Any help appreciated
Tom