Quote
Unlike traditional C# properties, however, it is not possible to build read-only or write-only
automatic properties. While you might think you can just omit the get; or set; within your property
declaration as follows:
// Read-only property? Error!
public int MyReadOnlyProp { get; }
automatic properties. While you might think you can just omit the get; or set; within your property
declaration as follows:
// Read-only property? Error!
public int MyReadOnlyProp { get; }
thats what he said. But how did System.Exception got away with it?
public virtual string Message { get; }
This post has been edited by tlhIn`toq: 28 September 2012 - 02:40 PM

New Topic/Question
Reply



MultiQuote




|