static void Main(string[] args) { Program2 p2 = new Program2(); p2.testNum = 23; Console.ReadKey(); }
public void testMethod(Program2 p2) { p2.testNum = 3; Console.WriteLine(p2.testNum); }