using System;
public class Program
{
public static void Main()
Point a;
Point b;
void SomeMethod()
a = new Point(2,5);
b = a;
b.x = 10;
}
SomeMethod();
Console.WriteLine(a.x);
Console.WriteLine(b.x);
public class Point
public float x;
public float y;
public Point(float x, float y)
this.x = x;
this.y = y;