Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Interface & property Assesor Question
Message
De
15/07/2010 14:37:25
Timothy Bryan
Sharpline Consultants
Conroe, Texas, États-Unis
 
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Divers
Thread ID:
01472590
Message ID:
01472603
Vues:
47
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform