lets say I have the following
public class A
{
private string _someField;
public string SomeField { get { return _someField; } }
}
For some reason I am checking the default of this class and I would like to set the default for a class, just like a default of type int is 0, I would like in the above class for my default of Somefield to be "hello";
int i = default(int); // i is 0
A myClass = default(A);
string s = myClass.SomeField; // s is hello
This is more just for my own theoretical satisfaction rather than practical application. Just wondering.