C# overview
A productive, strongly typed language for the whole .NET platform. Every language page follows the same structure, so you can jump between languages and compare.
Hello world
// Program.cs with top-level statements
Console.WriteLine("Hello, patterns!");What's in this guide
Basics
Core concepts every developer needs before patterns make sense.
practicesBest practices
Conventions and habits used by experienced teams.
tricksTips & tricks
Small idioms that make code shorter, safer and clearer.
solidSOLID
The five principles, with the example from this repository.
patternsDesign patterns
The 23 Gang of Four patterns, explained and implemented.
antipatternsAnti-patterns
Common mistakes, why they hurt and what to do instead.
aiAI utilities
Libraries and SDKs for ML, LLMs and AI-assisted development.
frameworksFrameworks
The ecosystem: web, data, testing and tooling.
performancePerformance
Execution model, memory, concurrency and how it compares.
usecasesUse cases
Where this language is a strong choice, and where it is not.
Source repository
The SOLID single-responsibility example in this guide comes from gelnomo/training-algorithms-c_sharp (SOLID/SingleResponsibilityPrinciple.cs). The other sections were written for nebx Learn.
Saved in this browser only. Part of Clean code foundations (0/5).