what is the accepted naming convention for int, string, array, list, object, etc...

Posted by RJ on Stack Overflow See other posts from Stack Overflow or by RJ
Published on 2010-04-29T23:41:18Z Indexed on 2010/04/29 23:47 UTC
Read the original article Hit count: 139

Filed under:
|
|

The company I work for now uses a set naming convention for their C# variables such as iSomeName for int, sSomeName for string, aSomeName for arrays, bSomeName for boolean, dSomeName for datetime and so on. My previous employer did not use the i, s, a, b and d prefixes and just named the variables a good understandable name. My impression is that these prefixes lost favor a while ago and from what I read it is not the current trend. It seems fine to me either way as long as the variable is descriptive enough to understand what it is doing but I was wondering what the now-a-day accepted practice is for naming variables?

© Stack Overflow or respective owner

Related posts about c#

Related posts about .NET