public class myclass { private int x; public void method1() { //Access to x from thread1 } public void method2() { //Access to x from thread2 } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)