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 efficiently manage data using queues in C#. This comprehensive tutorial covers the basics of the Queue data structure, including enqueue and dequeue operations, practical examples, and best practices. Perfect for beginners and seasoned developers looking to enhance their C# skills.

In C#, the `Array.Resize<T>` method changes the size of a one-dimensional array, either expanding or shrinking it. This method allocates a new array, copies elements, and replaces the old array.

Explore Hashtable in .NET 2.0, storing data with key-value pairs, constructors for capacity and load factor, fetching data with enumerator, clearing, and searching by key or value. Get ready for more insights in upcoming parts!

Explore the null-conditional operators in C# 6.0, which simplify null checks and prevent NullReferenceExceptions. Learn about the ?. operator, null-conditional indexing, and combining these with null-coalescing for robust code. Enhance your understanding of null safety in C#.

The Strategy Pattern in software development manages conditional logic elegantly by encapsulating algorithms into interchangeable classes. This approach enhances code flexibility, maintainability, and scalability, especially in complex applications.

This article explains Null-conditional Operators in C#, detailing their use for simplifying null checks, avoiding NullReferenceExceptions, working with collections, and combining with extension methods to handle null values efficiently.

The Singleton pattern is one of the most commonly used design patterns in software engineering. It falls under the category of creational patterns and ensures that a class has only one instance while providing a global point of access to that instance.

Difference Between Var And Dynamic In C#. The two concepts of static and dynamic types in C# can be illustrated with the use of the two keywords named var and dynamic. Var Vs Dynamic In C#.

In C#, both object and dynamic are used for handling data of any type, but they serve different purposes. The object keyword is used for static typing, requiring explicit type casting, while dynamic allows for dynamic typing, with type checking at runtime.

Explore the differences between const, readonly, and static keywords in C#. This guide covers their unique functionalities, use cases, and best practices in C# programming. Learn how to effectively use these keywords to define constants, immutable fields, and class-level members in your code.

Learn how the C# as, default, and yield keywords work, including iterator examples, and how to create and use Tuple objects.

Learn how C# ref and out parameters work, including initialization requirements, passing value and reference types, and returning multiple values from a method.

Explore the power of while loops in C# programming with this comprehensive guide. Learn how to utilize while loops for iterative tasks, control flow, and conditional execution. Master essential syntax and best practices to enhance your coding skills and efficiency.

Use nested C# for loops to print ascending and descending asterisk patterns in the console.

In C#, both ToString() and Convert.ToString() are used to convert objects to their string representation. However, they have different usages and behavior. Understanding the differences between these two methods can help you choose the right one for your needs.

In C#, the continue statement is used within loops (for, while, do-while, and foreach) to skip the current iteration and proceed to the next one. It's useful for bypassing specific conditions within a loop, enhancing control flow and loop efficiency.

Embark on your journey to master Object-Oriented Programming with C# in Part 1. Explore essential concepts like classes, methods, properties, and inheritance, laying the foundation for advanced C# development.

Discover advanced Object-Oriented Programming techniques in C# with our comprehensive Part 2 guide. Master inheritance, polymorphism, encapsulation, and more. Learn to create robust classes, utilize interfaces, and leverage abstract classes for efficient code design.

Delve into essential Object-Oriented Programming (OOP) concepts with C# in Part 4. Learn about encapsulation, properties, constructors, and methods. Explore access modifiers and best practices for code organization. Enhance your C# skills through practical examples.

Part 3 of our tutorial series delves deeper into Object Oriented Programming with C#. Explore advanced concepts like inheritance, polymorphism, and encapsulation. Master class hierarchies, method overriding, and the power of abstraction to build efficient and scalable applications.

Delve deeper into Object-Oriented Programming with C# in Part 5 of our series. Explore advanced concepts like inheritance, polymorphism, and encapsulation, empowering you to build robust and efficient applications.

Explore advanced concepts in Object-Oriented Programming (OOP) with C# in Part 6 of this series. Learn about inheritance, polymorphism, interfaces, and abstract classes. Understand method overriding, encapsulation, and design patterns.

Generics in C# allow you to define classes, methods, and interfaces with a placeholder for the type of data they store or use. This flexibility enables you to write more general and reusable code.

This article provides logic for Mapping the SQL Result to C# Class. This code snippet demonstrates the dynamic mapping of SQL result columns to C# properties, converting SNAKE_CASE SQL column names to PascalCase C# properties using MapToList for DbDataReader to object mapping.

C#'s HashTable is a data structure storing key-value pairs using a hash function for fast retrieval. It handles collisions via chaining, ensuring efficient insertion, deletion, and retrieval operations. With automatic resizing and a dynamic load factor, it offers scalability while maintaining performance.

Pagination is a common technique used to manage and display data in chunks. This article discusses implementing pagination in C# using extension methods, which allow adding new functionality to existing types without modifying their source code, making data handling clean and reusable.

Learn how to use if, else if, and else statements in C# to make decisions and control program flow based on conditions.

Learn how to use C# Action and Func delegates to invoke methods dynamically, handle callbacks, and return values through practical notification examples.

In this article, we will learn about the usage of required keywords in C#. In C# 11, the `required` keyword enforces the initialization of properties and fields within classes, records, or structs, enhancing code reliability by preventing uninitialized members and ensuring data integrity.

Learn about the versatile "for" loop in C#. Master the syntax and applications of this essential control structure for iterating through arrays, lists, and more. Explore loop optimization, nested loops, and how to efficiently manage repetitive tasks in C#.
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