Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Interface & property Assesor Question
Message
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Miscellaneous
Thread ID:
01472590
Message ID:
01472611
Views:
38
>I wrote an interface that defines a property, then a class to implment it.
>
>I tried to define the property in the interface with an internal set, but the compiler won't allow assesors in an interface. Does this mean that any property that stems from an interface must be public?

Yes. All interface properties are, by definition, public.

> How do I keep another class from from a different assembly from setting this property?

If you don't want classes in another assembly to access the properties via the interface then make the interface itself internal.
Previous
Reply
Map
View

Click here to load this message in the networking platform