Repository navigation
EN CSharp Language Manual
Codex edited this page Oct 11, 2026
·
1 revision
Українська · Русский · English · Deutsch · Français · Italiano · Español · 繁體中文 · 日本語 · 한국어
The guide is organized by topic in the official Microsoft documentation. The examples are written for the client user and the standard C#; Each section has a link to the official directory.
- Program and script structure
- Syntax, comments and names
- All built-in types
- Variables, Constants and Scope
- Transformations and parsing of values
- Operators and evaluation order
- Conditions and switch
- Pattern Matching
- Loops, break, continue and return
- Arrays, indexes and ranges
- List, Dictionary, HashSet, Queues and Stacks
- Methods, parameters and local functions
- Classes, objects and constructors
- Fields, properties, indexers and modifiers
- Structures, records, tuples and comparison
- Inheritance, interfaces and polymorphism
- Type Generics and Restrictions
- Enumerations and bit flags
- Delegates, lambdas and closures
- Events and handlers
- LINQ, data sampling and transformation
- null, nullable types and checks
- Exceptions, try/catch/finally and throw
- Resource release:
IDisposable,usingandawait using - async, await, Task and ValueTask
- Cancel, pause and background scripts
- Strings, formatting and regular expressions
- Files, streams and JSON
- Date, time, intervals and timers
- Threads, tasks and synchronization
- Iterators, yield and async sequences
- Namespaces, using and extension methods
- Attributes, reflection and dynamic
- Memory:
ref,Span,ref structandunsafe - Operator overloading and partial types
- Directives, language version and compilation options
- Libraries, projects and NuGet
- Complete Microsoft Language Reference
Examples of .csx use the game's API of the current session. Blocks labeled PROJECT-EXAMPLE show the standard structure of a .cs project. The language of C# and API game commands is described separately: the availability of the game action depends on the current state of the client and the command contract.
Complete reference of C# constructs - keywords, operators and directives with separate complete examples.
ClassicUO — Bad Newbie & C# Scripts IDE