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.
Exception Handling in C# is crucial for robust code. Using try-catch blocks, catch blocks, and finally blocks, developers manage unexpected issues gracefully, ensuring dependable and solid applications.

Resolve Twilio's SMS geographic permissions error by enabling messaging permissions for the destination country in the Twilio Console.

This article is about detecting file changes like file renaming, file creation, deletion and changes in a folder using FileSystemWatcher class.

Mastering Pattern Matching in C# provides comprehensive insights into leveraging pattern matching techniques to enhance code readability and efficiency. From type patterns to constant patterns, property patterns, and more, this guide equips developers with the skills needed to write cleaner and more expressive C# code.

In the world of C# programming, choosing the right data structure can significantly impact the efficiency and readability of your code. In this article, we'll delve into the nuances of each construct and explore when to use them in your C# projects.

Implementing a "mouse double click" event for a ListBox typically involves subscribing to the ListBox's MouseDoubleClick event and specifying the action you want to perform when the event occurs.

This article on C# operators from unary and binary operators to overloadable operators, relational operators, implicit and explicit cast operators, short-circuiting operators, the ternary operator, null-conditional operators, "exclusive or" operators, default operators, assignment operators, and sizeof operator.

This article explores the reasons behind choosing C# over other languages, delving into its evolution, key features like object orientation, lambda expressions, LINQ, generics, and its adaptability for modern development needs.

To set a long expiry time for a JSON Web Token (JWT) in C#, you need to configure the token's expiration claim accordingly.

Get a comprehensive analysis of Ziggy Rafiq's latest C# 10 enhancements and how they affect application performance. Discover how function pointers simplify method invocation, records enhance memory efficiency, and pattern-matching optimisations speed up execution. Discover how to use C# 10 features to optimise performance and user experience for your projects by exploring code examples illustrating these improvements.

Find out what C# 10 has to offer in Ziggy Rafiq's insightful article, "Code Generation and Productivity in C# 10 with Source Generators." Learn about the power of source generators, which streamline code generation during compilation, reducing redundancy and improving productivity. Discover how source generators offer improved performance, enhanced readability, and practical examples such as auto-implementing interfaces and serialization code generation. C# source generators help you create cleaner, more manageable codebases and will enhance your development workflow and efficiency. Ziggy Rafiq provides an in-depth overview of implementing source generators and demonstrates their versatility in creating cleaner, more manageable codebases.

Ziggy Rafiq discusses the C# memory model, including stacks, heaps, garbage collection, and memory leaks

This comprehensive resource covers everything you need to know to leverage Dependency Injection effectively in .NET 8 with C# 10. Ziggy Rafiq explains how to use Dependency Injection in the best possible way. For developers looking to optimize their .NET projects, this guide provides invaluable insight from understanding core concepts to implementing advanced techniques.

Learn how C# reflection inspects types, methods, properties, assemblies, and attributes at runtime, including typeof, GetType, and late binding.

In C# 10, authored by Ziggy Rafiq, developers will discover simplified syntax and performance improvements. Record structs combine the benefits of records and structs for better memory efficiency. Global usage streamlines namespace imports, reducing code clutter. With improved pattern matching and switch expressions, C# 10 is more expressive and concise. It enhances readability and performance.

In this article, we will learn to Explore essential array manipulations in C# with this introductory guide. Learn how to modify, copy, and manipulate array elements efficiently

C# is an object-oriented programming language. These days whenever you talk about object-oriented programming you hear the acronym, SOLID. These are five design principles introduced by Michael Feathers to make our object-oriented applications easy to understand and maintain.

In C# programming, sealed classes offer control over inheritance but can be restrictive. This article delves into unlocking their potential using extension methods and the decorator pattern. These techniques enable extending sealed classes' functionality without compromising code integrity,

Reflection is a powerful feature in C# that enables you to inspect and interact with types, assemblies, and objects at runtime. It provides a way to dynamically discover and use information about types, invoke methods, and access fields and properties.

This guide provides a comprehensive overview of sending and receiving emails in ASP.NET C#. It covers setting up SMTP, sending basic emails, adding attachments, sending to multiple recipients, and even receiving emails.

This article covers the options available in C# for null value and null reference handling. It includes new features of null handling introduced in C# 6.0, C# 8.0, and the upcoming version of C# 9.0.

This tutorial provides a comprehensive overview of the new features in .NET 8, focusing on performance enhancements and language improvements. Explore the advancements introduced in this version, delving into how they enhance the overall performance and functionality of .NET applications.

Explore the trade-offs between using raw SQL queries and leveraging Dapper, a micro-ORM for database access in C# development. Delve into performance, code maintainability, and efficiency to make informed decisions in your data retrieval strategies.

In this article, we will learn about Null Coalescing (??) Operator in C# programming. Explore the Null Coalescing (??) Operator in C#, a versatile tool for handling null values. Learn its syntax, usage, and benefits in providing default values and simplifying error handling in conditional expressions.

In C# programming, developers often encounter the "Object reference not set to an instance of an object" exception, commonly known as a NullReferenceException. However, with the introduction of the Null-Conditional operator in C# 6, handling such exceptions has become easier.

In C#, NULL values are handled differently for value types and reference types. Value types cannot be assigned NULL values directly, but reference types can. Nullable types provide a solution for assigning NULL to value types by adding a '?' after the type declaration.

In this article, we will learn to Explore how threads are managed, synchronized, and executed at the kernel level, shedding light on the core mechanisms of concurrency and parallelism.

Exploring common mistakes in implementing the Unit of Work pattern in C# development. Examples include overcomplicating the class, incorrect transaction management, and lacking exception handling.

C# 12's experimental Interceptors let you reroute method calls during compilation. Think of them as "code detours" for specific methods, allowing modifications without directly changing the code. They work with source generators for advanced use cases like performance optimization.

Learn how C# 6 null-conditional and null-coalescing operators simplify null checks when accessing object properties.
Everything on C#, not only its articles: the C# page →
DevSocialUpcoming · 3rd editionAI Agents ConferenceNov 23–27, 2026Live onlineMembers only16days leftRegisterMembers onlyWrite an article and earn +1,000 SHARP when it is approved.
Write an article