Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Passing Enum To Method
Message
From
17/03/2010 14:06:40
Timothy Bryan
Sharpline Consultants
Conroe, Texas, United States
 
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
01455109
Message ID:
01455156
Views:
28
>
>>>It all depends on what you are using them for. I will rarely ever put them inside a class but you can if it is only being used inside >>that class it might make sense. Since you can put them in a cs file all by itself which is what I do you could also create a cs file >>called Enums.cs and put all of them in the same file. I create Enums for lots of things because they help to prevent mistyping for >>yourself.
>
>That's eactly what I did. I also moved my Event Args and Delgates this way also, because the same events are used in multiple controls.
>
>Good info. Thanks
>

Yep, me too with the EventArgs and Delegates. Often put the Delegates all in the same file, but the EventArgs are classes and I put them each in their own file.
Your welcome
Tim
Timothy Bryan
Previous
Reply
Map
View

Click here to load this message in the networking platform