示例#1
0
        private void button7_Click(object sender, EventArgs e)
        {
            KidClass <System.Drawing.Point> kiddo = new KidClass <System.Drawing.Point>();

            kiddo.Name = "Ella";
            kiddo.Age  = 6;

            System.Drawing.Point instanceType = kiddo.CreateInstanceOfParameterType();

            kiddo.PrintAllInfo();
            Console.WriteLine($"Type of type parameter: {instanceType.GetType().ToString()}");
        }