I see that one recommends _c for constants. Never seen that one before...
Doesn't matter for me tho since I avoid constants like the plague :-}
>Here is an extension to that from Lance Hunts document of Coding Standards for C#. This mostly follows the iDesign document also. Attached image is the sheet sheet.
>
>>Thank you. That is the sort of convention I was looking for.
>>
>>>If you follow standard .NET naming conventions, it isn't an issue at all.
>>>
>>>If a variable: customerName
>>>If a class: CustomerName
>>>If a field: _customerName
>>>
>>>
>>>>
>>>>I was talking about remembering whether a variable is customername, Customername or CustomerName. Craig indicates the IDE helps you.
>>>>
>>>>Alex
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement