Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

2
  • While I agree with your answer, your example could use some improvement. You may want to make a comment where the compiler error would occur. Commented Aug 4, 2014 at 18:19
  • NB The VB.NET syntax corresponding to the C# readonly keyword, is to apply ReadOnly to the field instead of to the property. Commented Jan 3, 2019 at 9:18