Is it possible to have different access modifiers on the get and set methods of a property in .NET?

No we can not have different modifiers of a common property, which means that if the access modifier of a property’s get method is protected, and it must be protected for the set method as well.

Leave a Reply

Your email address will not be published. Required fields are marked *

two × 1 =