Skip to main content

In this article

Coding Standards/Csharp/Csharp

Coding Standards/Csharp/Csharp
FieldValue
Kindinstruction
Source.github/instructions/coding-standards/csharp/csharp.instructions.md
InvocationApplied automatically to **/*.cs
InteractiveNo

What it does

C# (CSharp) code authoring conventions

When to use it

Apply these conventions to C# production and test files when choosing project layout, nullable contracts, naming, member order, documentation, and modern C# syntax. Test files also use the C# test instructions for framework, fixture, and mocking conventions.

Example usage

Provide a concrete example that shows the asset in action, including representative input and the resulting output.