using System;
public class Program
{
public static void Main()
var c = new Class<Test1>(){Value = new Test1()};
Console.WriteLine(c.Value);
}
public class Class<T> where T : class
public T Value{get;set;}
public class Test1
public override string ToString()
return "c";