MSDN Community

Explore, Learn, and Contribute

.NET Code Samples

Discover practical code examples, snippets, and projects to help you build amazing applications with .NET.

Web App Sample

ASP.NET Core Web API with EF Core

Build a RESTful API using ASP.NET Core and Entity Framework Core for data access. Includes examples for CRUD operations.

ASP.NET Core Web API EF Core REST
Desktop App Sample

WPF Modern UI Design

Implement a modern and responsive user interface for your WPF desktop applications using MVVM patterns and XAML styling.

WPF Desktop UI Design MVVM
Mobile App Sample

MAUI Cross-Platform App

Develop native mobile and desktop applications from a single C# codebase using .NET MAUI. Sample covers basic navigation and data binding.

MAUI Mobile Cross-Platform Xamarin
Cloud Service Sample

Azure Functions with Blob Storage

Learn how to create serverless Azure Functions that interact with Azure Blob Storage for file management tasks.

Azure Serverless Blob Storage Functions
AI ML Sample

ML.NET Text Classification

Implement a sentiment analysis model using ML.NET to classify text data. Includes data preparation and model training.

ML.NET AI Machine Learning Text Analysis
Async Await Sample

Advanced Async/Await Patterns

Explore advanced techniques for asynchronous programming in C#, including handling cancellation and common pitfalls.

C# Async/Await Concurrency