Posts

Showing posts from April, 2010

C# Coding Standards - and Naming Conventions

C# Coding Standards - and Naming Conventions   Why : consistent with the Microsoft's .NET Framework and easy to read.   use PascalCasing for class names and method names.   public class ClientActivity {      public void ClearStatistics()     {          //...     }      public void CalculateStatistics()     {          //...     } } use camelCasing for method arguments and local variables public class UserLog {      public void Add( LogEvent logEvent)     {          int itemCount = logEvent.Items.Count;          // ...     } }    Do not use Hungarian notation or any other type identification in identifiers // Corre...