.NET Code Samples
Explore a variety of C# and .NET code samples demonstrating best practices and common development patterns. Filter by technology, complexity, or scenario to find what you need.
Building RESTful APIs with ASP.NET Core
Learn how to create efficient and scalable RESTful web APIs using the latest features of ASP.NET Core. Covers routing, controllers, data modeling, and more.
Cross-Platform Mobile App with Xamarin.Forms
Develop native mobile applications for iOS and Android from a single C# codebase. This sample demonstrates UI layout, data binding, and navigation patterns.
Data Access with Entity Framework Core
Efficiently manage your application's data using Entity Framework Core. This sample covers entity configuration, migrations, LINQ queries, and CRUD operations.
Desktop Applications with WPF and MVVM
Build modern Windows desktop applications using Windows Presentation Foundation (WPF) and the Model-View-ViewModel (MVVM) pattern for maintainability and testability.
Serverless Computing with Azure Functions
Implement serverless logic in the cloud using Azure Functions. This sample shows how to trigger functions from various events and integrate with other Azure services.
Building Console Applications
Master the fundamentals of creating command-line applications with .NET. This sample covers input/output, argument parsing, and basic application structure.