Csharp.instructions
--- description: C# standards for modern .NET applications. applyTo: "**/*.{cs,csx}" --- # C# Instructions ## Language - Use nullable reference types. - Prefer records for immutable data. - Prefer `async`/`await` over blocking calls. ## APIs - Validate inputs and return meaningful errors. - Avoid exposing internal types. ## Dependency Injection - Keep constructors simple. - Prefer interfaces for external dependencies. ## Testing - Add tests for business logic. - Prefer deterministic tests (avoid timing flakiness).
fill the variables
This prompt has 1 variable. Pro fills them into a ready-to-paste prompt for you — no manual find-and-replace.
{cs,csx}
Unlock with Pro →when to use it
Community prompt sourced from the open-source GitHub repo ReactSphere/awesome-copilot-agents (MIT). A "Csharp.instructions" style prompt — adapt the placeholders and specifics to your task. Imported as-is and not independently retested here, so check the output before relying on it.
tags
roleplaycommunitygeneral
source
ReactSphere/awesome-copilot-agents · MIT