N Norton Aug 7, 2004 #1 Is it possible to have a property that is Public read only and private writable? What would the syntax look like? Thanks. NortonZ
Is it possible to have a property that is Public read only and private writable? What would the syntax look like? Thanks. NortonZ
S Shiva Aug 7, 2004 #2 Current .NET versions do not support it. But, it is in .NET 2.0! Is it possible to have a property that is Public read only and private writable? What would the syntax look like? Thanks. NortonZ
Current .NET versions do not support it. But, it is in .NET 2.0! Is it possible to have a property that is Public read only and private writable? What would the syntax look like? Thanks. NortonZ
T Tim Davis Aug 7, 2004 #3 How about this...? class MyClass { public int Value { get{ return value; } } // readonly property private int value; // private variable }
How about this...? class MyClass { public int Value { get{ return value; } } // readonly property private int value; // private variable }