Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Property is less accessible...
Message
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Divers
Thread ID:
01453992
Message ID:
01454004
Vues:
32
>>I defined an enum in my App class:
>>
>>
>>public enum Panels
>>{
>>    Login,
>>    Welcome,
>>    ProjectInfo,
>>    Query
>>}
>>
>>
>>Then, in the base panel class I have:
>>
>>
>>private csCOSApp.Panels _PanelType;
>>public csCOSApp.Panels PanelType
>>{
>>    get { return _PanelType; }
>>    set { _PanelType = value; }
>>}
>>
>>
>>I get
>>
>>
>>Inconsistent accessibility: property type '...csCOSApp.Panels' is less accessible than property '....pnlBase.PanelType'
>>
>>
>>Why is this? Why can't I do this?
>
>Because your csCOSApp class is not public ?

I gotta quit drinking while I'm coding!!!

Thanks!
Everything makes sense in someone's mind
public class SystemCrasher :ICrashable
In addition, an integer field is not for irrational people
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform