Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Passing Enum To Method
Message
De
17/03/2010 14:06:40
Timothy Bryan
Sharpline Consultants
Conroe, Texas, États-Unis
 
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Divers
Thread ID:
01455109
Message ID:
01455156
Vues:
29
>
>>>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform