class Program
{
static void Main(string[] args)
{
MyClass m = new MyClass(null);
Console.WriteLine(m.Name);
Console.ReadKey();
}
}
class MyClass
{
public MyClass(string name)
{
this.Name = name;
}
public string Name
{
get
{
return this.Name;
}
private set
{
this.Name = value;
}
}