public static void Main()
Console.WriteLine("Hello World");
Taxi Tmp = test<Taxi>((Car)new Bus(){Width=10,Height=12});
Console.WriteLine("Width=" + Tmp.Width.ToString() + " || " + "Height=" + Tmp.Height.ToString());
public static T test<T>(Car input) where T : Car ,new() {
return new T(){Width=input.Width,Height=input.Height};