public class Test { private int m_nWrite; private int readonly m_nRead=100; private int m_nWriteRead;
public int WRITEREAD { get {return m_nWriteRead;} set {m_nWriteRead=value;} }
public int WRITE { set { m_nWrite = value; } }
public int READ { get {return m_nRead;} }
}
class TestApp { public static void Main() { Test MyTest = new Test(); int i=MyTest.READ; //get MyTest.WRITE=250; //set MyTest.WRITEREAD+=10000000 ; //set and get