Skip to content
AgileLogics
2 min read

Comments & Code Style

Prerequisites: Namespaces

// A single-line comment

/*
 * A multi-line comment
 */

/// <summary>
/// An XML doc comment — documents a method, and can be
/// turned into IntelliSense tooltips and generated docs.
/// </summary>
void Greet(string name) { }

Convention: PascalCase for classes, methods, and properties; camelCase for local variables and parameters; a leading underscore (_balance) is a common (not required) convention for private fields.