Visual Studio 2015的C#6.0,今天无意中看这个视频,怕忘记其中的特性,故此进行记录. public class Point { //Getter专属自动属性 public int x { get; } //自动属性初始值 ; //构造函数给get赋初始值 public Point(int X, int Y) { x = X; y = Y; } //使用全局静态using static System.Math; public double Dist { get { return…