Access Modifiers
suggest changeRemarks
If the access modifier is omitted,
- classes are by default
internal
- methods are by deault
private
- getters and setters inherit the modifier of the property, by default this is
private
Access modifiers on setters or getters of properties can only restrict access, not widen it: public string someProperty {get; private set;}
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents