Learn it from developers who built it.
Tutorials, how-tos and deep dives on AI, .NET, C#, cloud and developer tools, written by the community.

Learn how to find the largest and smallest numbers in an array using C# and ASP.NET. This real-time example demonstrates a simple web form with backend logic using LINQ for efficient processing.

Learn how to swap two numbers in C# without using a third variable! This real-time example demonstrates a clever algorithm with clear steps and code.

Learn how to reverse a number using C# in this step-by-step tutorial. Includes WebForm design and backend logic for a real-time, interactive example.

Learn how to build a real-time palindrome number checker using C# and ASP.NET! This tutorial provides step-by-step instructions and backend logic for verification.

Learn how to build a prime number checker using C# WebForms! This tutorial provides a step-by-step guide with code examples for both the front-end and back-end logic.

Explore C# Reflection in ASP.NET WebForms! Dynamically inspect types, create objects, and invoke methods at runtime. Perfect for plugins and dynamic UIs.

Learn how Garbage Collection (GC) works in C# ASP.NET WebForms with a practical example. Prevent memory leaks and optimize your web application's performance.

Unlock ASP.NET WebForms performance with async/await! Prevent page freezes during long operations like API calls. See a practical example & real-world use cases.

Learn C# collections (List, Dictionary, Queue, Stack) with ASP.NET Web Forms! This tutorial provides practical examples and real-time use cases for each collection type.

Master file handling in C# with this guide! Learn to read, write, and manage files in ASP.NET Web Forms using System.IO. Includes real-time examples and best practices.

Master C# delegates and events in Windows Forms! Learn to build responsive UIs with real-time updates, like a file upload progress tracker. Essential for event-driven apps.

Understand the core differences between abstract classes and interfaces in C# with a practical Windows Forms example. Learn when to use each for better design.

Unlock C#'s power! Explore inheritance and polymorphism with practical ASP.NET WebForms examples. Build reusable, scalable, and maintainable applications. Master OOP!

Master C# string manipulation! Compare string, StringBuilder, & StringBuffer (simulated) in ASP.NET WebForms. Boost performance & ensure thread safety. ??

Explore MSDTC in C# for managing distributed transactions across multiple resources like SQL databases. Ensure atomicity: all operations succeed or fail together. Learn with examples!

Implement the Saga Pattern in C# for reliable transaction orchestration across microservices. Learn to manage complex workflows and ensure data consistency.

Unlock the power of C#! This guide covers everything from basic syntax to advanced features like OOP, async programming, and pattern matching. Build web, mobile, and AI apps!

Master C# memory management! Explore garbage collection, cyclic references, weak references, and the IDisposable pattern for efficient, leak-free .NET apps.

Master C# memory management! Explore garbage collection, cyclic references, weak references, and IDisposable for efficient, leak-free .NET applications.

Craft robust .NET contracts with C# 12's required members, primary constructors, and GeneratedRegex. Ensure clear, versionable, and performant APIs and messages.

Learn how to implement a WebProxy in C# to bypass network restrictions and access the internet in corporate environments. This guide provides a reusable method for creating and configuring a proxy, handling authentication, and ensuring secure communication. Discover how to enable/disable the proxy via web.config, manage credentials, and set it as the default for all web requests, making your C# applications enterprise-ready and robust in restricted networks. Essential for API interactions and data fetching behind firewalls.

This guide provides practical steps to customize your VS Code settings, utilize .editorconfig for team consistency, and leverage CSharpier for automated formatting. Learn to control indentation, spacing, and brace placement for cleaner, more readable code. Improve collaboration and maintain a professional coding style across all your C# projects, ensuring consistency and ease of maintenance.

Securely managing connection strings in C# .NET is crucial for database-driven applications. This guide covers best practices like avoiding hard-coding, leveraging Windows Authentication, and utilizing Azure Key Vault for sensitive data. Learn to protect your application from vulnerabilities by encrypting connection strings, validating their structure, and applying the principle of least privilege. Implement these strategies to enhance security and streamline deployment in your C# projects.

Master the KISS (Keep It Simple, Stupid) principle in C# to write cleaner, more maintainable code. This guide provides practical examples of refactoring complex code into simpler solutions, leveraging built-in framework features, and combining KISS with DRY and SOLID principles. Learn to avoid over-engineering and create robust applications that are easier to understand, debug, and maintain. Improve your C# coding skills today!

Master C# 12's essential features for ASP.NET Core development! Part 4 dives into primary constructors (reducing boilerplate), records (immutable data), advanced pattern matching (smarter code flow), and collection expressions (simplified collections). Learn real-world integration, performance optimization, and migration strategies for modern, efficient ASP.NET Core applications. Unlock the power of C# 12!

Enhance your .NET projects with the GuidHelper extension! This helper provides methods for safely parsing, validating, and manipulating Guids. Easily check for empty Guids, parse strings into Guids (or return null/empty), and extract lists of Guids from delimited strings. Includes comprehensive unit tests and usage examples for seamless integration into your .NET Core or .NET 6/7/8 projects, ensuring robust and reliable Guid handling.

C# 14 introduces extension members, expanding the capabilities of extension methods to include properties, indexers, operators, and events. This feature enhances API design by allowing developers to enrich existing types without modification, leading to cleaner code, improved modularity, and better interoperability. Learn how to leverage extension members for more expressive and maintainable code.

C# 14 introduces field-backed properties, enabling developers to inject logic (validation, normalization) into auto-implemented properties without manual backing fields. The field contextual keyword provides access to the compiler-generated backing field within property accessors, simplifying code and reducing boilerplate. This feature offers a balance between concise syntax and custom behavior, enhancing code readability and maintainability for simple property logic.

C# 14 introduces extension members — a powerful upgrade from extension methods. Learn what they are, how they work, see examples, benefits, and limitations.

Learn how C# delegates, including Func, Action, and Predicate, support callbacks, events, LINQ, async code, testing, and reusable processing pipelines.
Everything on C#, not only its articles: the C# page →
Write an article and earn +1,000 SHARP when it is approved.
Write an article