コード例 #1
0
 /* static void MyMethodStruct(Point i)
 {
     i.X += 20;
 }*/
 static void Main()
 {
     /* Point p =  new Point();
     Point p2 = p;
     p.X = 10;*/
     int j;
     Availiability a = Availiability.Availiable;
     a ^= Availiability.Availiable;
     //Console.Write((int)a);
     MyMethod(out j, "");
     Point p = new Point(2,3);
     p.DistTo();
     Console.WriteLine("j = {0}", j);
     PointClass pc = new PointClass();
     //pc.X = 100;
     PointClass newpc = new PointClass();
     //MyMethodClass(pc);
     //Console.WriteLine(pc.X);
     //MyMethodStruct(p);
     //Math.Sqrt((x1 - x2)*(x1 - x2)+ (y1 - y2) * (y1 - y2));
     //Console.WriteLine(p.X);
     Console.Read();
 }
コード例 #2
0
 NewClass()
 {
     i = 0;
     point = new PointClass();
 }
コード例 #3
0
 NewClass(PointClass point)
 {
     this.point = point;
 }
コード例 #4
0
 static void MyMethodClass(PointClass i)
 {
     i.X += 20;
 }