Mensaje
General information
Foro:
ASP.NET
Category:
Coding, syntax and commands
Miscellaneous
ID de la conversación:
01453992
ID del mensaje:
01454002
Views:
38
>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 ?
Previous
Next
Responder
Mapa
Ver