Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Property Based On Enum
Message
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Miscellaneous
Thread ID:
01384226
Message ID:
01384232
Views:
24
Is this class static? Where did you put this class definition?

>It is created in the class csPIM, which is not the same class as the form I'm trying to put the property in..
>
>
>>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
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform