ZetCode

C# tutorials

C# is a modern, object-oriented programming language developed by Microsoft as part of the .NET framework. Designed for simplicity, scalability, and performance, C# is widely used in building web applications, desktop software, cloud services, and enterprise solutions. Its strong typing, rich feature set, and deep integration with the .NET ecosystem make it a powerful choice for developers across industries.

E-books

C# provides a variety of advanced features, including automatic memory management through garbage collection, robust multithreading support for concurrent programming, and an extensive standard library for handling data, networking, and file operations. Its emphasis on security, reliability, and backward compatibility ensures that applications remain stable and maintainable over time.

Popular in enterprise environments, C# powers many large-scale applications, including banking, e-commerce, and healthcare systems. It is also a leading language for game development through Unity, enabling developers to create interactive and immersive experiences. With numerous frameworks like ASP.NET Core, Entity Framework, and Xamarin, along with a thriving developer community, C# continues to evolve as a versatile and efficient language for modern software development.

Language basics

Core building blocks of the language: program structure, variables, data types, operators, flow control, and type conversions.

Object-oriented programming

Classes, objects, inheritance, interfaces, records, generics, and related language features.

Methods and functional programming

Methods, delegates, events, lambdas, expression trees, closures, and extension methods.

Strings and text

Creating, formatting, searching, and transforming strings, plus encodings, escaping, and text templating.

Arrays and collections

Arrays, spans, lists, dictionaries, sets, queues, and other collection types.

LINQ

Querying collections with Language Integrated Query.

Concurrency and asynchronous programming

Threads, tasks, async/await, and synchronization primitives.

Files and I/O

Reading and writing files, streams, directories, paths, and archives.

Data formats

Working with JSON, MessagePack, CSV, YAML, XML, Excel, PDF, and data frames.

Date and time

Dates, times, time spans, calendars, and time zones.

Networking and web

HTTP clients and servers, sockets, e-mail, web scraping, and browser automation.

Databases

Accessing relational and document databases, and full-text search.

Testing, logging, and diagnostics

Unit testing, mocking, fake data, validation, logging, and performance measurement.

System and command line

Environment, processes, command line applications, and containers.

GUI and graphics

Desktop applications, 2D graphics, and plotting.

Sorting algorithms

Classic sorting algorithms implemented in C#, the built-in sorting APIs, and binary search.

System.IO API reference

Reference pages for the classes and enumerations of the System.IO namespace.

last modified November 15, 2026