public void Method1(ref int x, ref int y)
Console.WriteLine($"2-Inside the method before transformations: x={x} - y={y}");
Console.WriteLine($"3-Inside the method after transformations: x={x} - y={y}");
static void Main(string[] args)
ParamMethod obj1 = new ParamMethod();
Console.WriteLine($"1-Before method call: x={x} - y={y}");
obj1.Method1(ref x, ref y);
Console.WriteLine($"4-After the method call: x={x} - y={y}");