组元是C# 4.0引入的一个新特性,编写的时候需要基于.NET Framework 4.0或者更高版本.组元使用泛型来简化一个类的定义. public class Point { public int X { get; set; } public int Y { get; set; } } //the user customer data type. Point p = new Point() { X = 10, Y = 20 }; //use the predefine generic tup…