Skip to content

Keywords

Overview

Keywords:

abstract, as, base, bool, break, byte, case, catch, char, class, const, continue, decimal, default, delegate, do, double, else, enum, event, false, finally, float, for, foreach, goto, if, in, int, interface, internal, is, long, namespace, new, null, object, out, override, private, protected, public, readonly, ref, return, sbyte, sealed, short, sizeof, static, string, struct, switch, this, throw, true, try, typeof, uint, ulong, ushort, using, virtual, void, while, async, await, from, join, let, orderby, partial, set, get, value, var, where

Operators:

+, -, *, /, %, <, >, =, ==, !=

Literals:

  • Integer Literals: Numbers without decimal part
  • Floating-point literals: Numbers with decimal part
  • Character literals: ''
  • String literals: ""
  • Boolean literals: true, false

Identifiers:

All types of names (variable names, class names, field names, property names, method names, etc.)

Naming Conventions

Naming Convention Usage Example
camelCase For all local variables, parameters customerName
PascalCase For all class names, structure names, namespace names, field names, method names, property names CustomerName
IPascalCase For all interface names ICustomerName
_camelCase For all private fields _customerName