1,将Stuct换为class
2,使用中间变量,
如Point p=new Point(x,y);
this.Location=p;
而不能直接给struct赋值,因为值类型是不能改变的,必须生成新的值类型