Reference Keywords
- Abstract Used to declare abstract classes and methods.
- Async Indicates that a method can execute asynchronously.
- Await Used within an async method to pause execution until a task completes.
- Base Refers to the immediate base class of a derived class.
- Bool Represents a Boolean value (true or false).
- Break Exits a loop or switch statement.
- Byte Represents an 8-bit unsigned integer.
- Case Used in a switch statement to define a specific value to match.
- Catch Handles exceptions thrown in a try block.
- Char Represents a single Unicode character.
- Class Defines a class, which is a reference type.
- Const Declares a constant field, whose value cannot be changed.
- Continue Skips the rest of the current loop iteration and proceeds to the next.
- Decimal Represents a high-precision decimal number.
- Default Specifies the default case in a switch statement.
- Delegate Declares a delegate, which represents a reference to a method.
- Do Starts a do-while loop.
- Double Represents a double-precision floating-point number.
- Else Used in an if-else statement.
- Enum Defines an enumeration type.
- Event Declares an event, which is a mechanism by which a class can send notifications.
- Explicit Used to declare an explicit conversion operator.
- Extern Indicates that a method is implemented externally (e.g., in native code).
- False Represents the Boolean value false.
- Finally Executes code regardless of whether an exception is thrown in a try block.
- Fixed Prevents garbage collection of a variable for the duration of a statement.
- Float Represents a single-precision floating-point number.
- For Starts a for loop.
- Foreach Starts a foreach loop, which iterates over a collection.
- Get Accessor for a property that retrieves its value.
- Global Refers to the global scope.
- Goto Transfers control to a labeled statement.
- If Starts an if statement.
- Implicit Used to declare an implicit conversion operator.
- In Used in various contexts, including generic type parameters and parameter modifiers.
- Int Represents a 32-bit signed integer.
- Interface Defines an interface, which is a contract that a class must implement.
- Internal Access modifier indicating that a type or member is accessible only within its assembly.
- Is Tests an object for compatibility with a given type.
- Lock Acquires a mutual-exclusive lock for a given object.
- Long Represents a 64-bit signed integer.
- Namespace Organizes code into logical groups.
- New Creates a new instance of a type or declares a new member that hides an inherited member.
- Null Represents a null reference.
- Object The ultimate base class of all types in C#.
- Operator Defines an operator overload.
- Out Parameter modifier indicating that the parameter is passed by reference and must be assigned by the called method.
- Override Indicates that a method in a derived class overrides a method in a base class.
- Params Parameter modifier that allows a variable number of arguments to be passed to a method.
- Private Access modifier indicating that a member is accessible only within its own class.
- Protected Access modifier indicating that a member is accessible within its own class and by derived classes.
- Public Access modifier indicating that a member is accessible from anywhere.
- Readonly Indicates that the field value can only be assigned during initialization or in the constructor.
- Ref Parameter modifier indicating that the parameter is passed by reference.
- Return Exits a method and returns a value.
- Sbyte Represents an 8-bit signed integer.
- Sealed Indicates that a class cannot be inherited from.
- Select Used in LINQ queries to project elements.
- Set Accessor for a property that assigns its value.
- Short Represents a 16-bit signed integer.
- Sizeof Returns the size of a value type.
- Stackalloc Allocates memory on the call stack.
- Static Indicates that a member belongs to the type itself, not to instances of the type.
- String Represents a sequence of characters.
- Struct Defines a structure, which is a value type.
- Switch Starts a switch statement.
- This Refers to the current instance of a class.
- Throw Throws an exception.
- True Represents the Boolean value true.
- Try Starts a try block for exception handling.
- Typeof Returns the Type object for a given type.
- Uint Represents a 32-bit unsigned integer.
- Ulong Represents a 64-bit unsigned integer.
- Unchecked Disables overflow checking for arithmetic operations.
- Unsafe Indicates that a block of code uses unsafe code.
- Ushort Represents a 16-bit unsigned integer.
- Using Declares a namespace import or ensures disposal of a disposable object.
- Virtual Indicates that a method can be overridden in a derived class.
- Void Indicates that a method does not return a value.
- Volatile Indicates that a field might be modified by multiple threads concurrently.
- While Starts a while loop.
- Var Infers the type of a variable from its initializer.
- Yield Used to return values from an iterator method.