Browsed by
Tag: naming

C# Coding Standards and Naming Conventions

C# Coding Standards and Naming Conventions

Below are our C# coding standards, naming conventions, and best practices. Use these in your own projects and/or adjust these to your own needs.   douse PascalCasing for class names and method names. public class ClientActivity { public void ClearStatistics() { //… } public void CalculateStatistics() { //… } } Why: consistent with the Microsoft’s .NET Framework and easy to read. douse camelCasing for method arguments and local variables. public class UserLog { public void Add(LogEvent logEvent) { int itemCount = logEvent.Items.Count; // … }…

Read More Read More