Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Property Based On Enum
Message
De
26/02/2009 00:22:58
Mike Cole
Yellow Lab Technologies
Stanley, Iowa, États-Unis
 
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Divers
Thread ID:
01384226
Message ID:
01384228
Vues:
29
In which class did you create the enum? What is the scope of the class?

>I have created an enum:
>
>
>public enum AppointmentType
>{
>    New,
>    Edit
>}
>
>
>In the appointment form I want to expose a property based on it:
>
>
>private csPIM.AppointmentType _AppointmentType;
>public csPIM.AppointmentType AppointmentType
>{
>    get { return _AppointmentType; }
>    set { _AppointmentType = value; }
>}
>
>
>When I compile I get
>"Inconsistent accessibility: property type 'csPIM.AppointmentType' is less accessible than property 'frmAppointment.AppointmentType'"
>
>What am I doing wrong here?
>
>Thanks
Very fitting: http://xkcd.com/386/
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform