Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Interface & property Assesor Question
Message
From
15/07/2010 14:37:25
Timothy Bryan
Sharpline Consultants
Conroe, Texas, United States
 
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Miscellaneous
Thread ID:
01472590
Message ID:
01472603
Views:
46
>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? How do I keep another class from from a different assembly from setting this property?

when you define an Interface it is just the contract which defines what must be implemented. In your concrete class that implements that interface, you can set the property to something other than public when you implement the property.
Tim
Timothy Bryan
Previous
Reply
Map
View

Click here to load this message in the networking platform