in C# following code is valid (the set is protected)
Code: Select all
public Exception LastException { get; protected set; }
Code: Select all
public property LastException as Exception
getend get
protected setend set
Now my question, how to set different access modifiers for get and set?
Code: Select all
PUBLIC PROPERTY LastException AS Exception GET PROTECTED SET
Regards,
Stefan
PS: This should not result in discussion how to do error handling. This is just a sample about property and modifiers.