I recently hit an interesting gotcha with some code in a C# codebase i was working with. It baffled me because I didn’t understand how this could compile. MyClass.Foo has a getter but no setter, yet an instantiated MyClass can have the Foo property s...

Markdown supported · ⌘↵ to post
No responses yet.