Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Event naming convention confusion
Message
De
21/06/2007 13:02:08
Timothy Bryan
Sharpline Consultants
Conroe, Texas, États-Unis
 
 
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Versions des environnements
Environment:
C# 2.0
OS:
Windows XP SP2
Divers
Thread ID:
01234534
Message ID:
01234786
Vues:
16
Craig,

I can't say I follow all those below exactly but not far off. I do keep a consistent convention for my self on everything so it is easier to maintain for me or others. My question had to do with the convention for events, but I think Bonnie gave me what I was after.
Thanks for your comments
Tim

>
>I pretty much follow the internal coding guidelines from Brad Abrams blog:
>http://blogs.msdn.com/brada/articles/361363.aspx
>
>The highlights are:
>Do not use Hungarian notation
>Do not use a prefix for member variables (_, m_, s_, etc.). If you want to distinguish between local and member variables you should use “this.” in C# and “Me.” in VB.NET.
>Do use camelCasing for member variables
>Do use camelCasing for parameters
>Do use camelCasing for local variables
>Do use PascalCasing for function, property, event, and class names
>Do prefix interfaces names with “I”
>Do not prefix enums, classes, or delegates with any letter
>The reasons to extend the public rules (no Hungarian, no prefix for member variables, etc.) is to produce a consistent source code appearance. In addition a goal is to have clean readable source. Code legibility should be a primary goal.
Timothy Bryan
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform