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 implement a read-only C# MultiStream class that combines multiple .NET streams into one seekable Stream without copying all data into a MemoryStream.

In this article, we are going to compare two objects of the same class having collection property or multiple collection properties.

There are many ways to approach object instantiation. In this article we’ll cover a few of the patterns used to instantiate objects. We'll look at different instantiation patterns used to control how objects are instantiated.

How to implement partial method in C#. A partial method can be used as a definition in one part while another part can be the implementation.

There are many ways to approach object instantiation. In this article we'll cover a object instantiation with the constructor method on the class. The constructor is a method with no return type declared and has the same name as the class it is declared in.

We can now get a Primary Constructor by using the auto-implemented properties initializer.

In this article you will learn how to work with C# JSON string. JSON is a lightweight data interchange format. JSON is language independent, easy to understand and self-describing. C# json parser code example.

Here, we are going to learn to make a Windows local user account using C#. Here we are going to make a c-sharp console application and write code in it to make user accounts via C#.

This very short article will address an extremely easy way to hide the date value contained in a date time picker control. While the control contains no property that will allow you to hide the current date, nor to set the value of the control to null or an empty string, it is still possible, and even very easy to generate a date time picker control that does not display a date.

There are many ways to approach object instantiation. In this article we'll cover a few of the patterns used to instantiate objects. In this final article in the series, we'll be looking at how avoid instantiation altogether.

There are many ways to approach object instantiation. In this article we’ll cover a few of the patterns used to instantiate objects. In the next article, we will take a look at the builder pattern for object instantiation.

There are many ways to approach object instantiation. In this article we’ll cover a few of the patterns used to instantiate objects. In this article, we'll look at building a couple kinds of abstract factories.

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, maintain and expand as future requirements change. Today, we will look at the fifth and final principle with an example. I covered the first four principles in my previous articles.

In this article you will learn how to call a parent's page method from a UserControl in C#.

The As operator in C# is used to convert from one type to another. You can use casting to cast one type to another but if you apply casting on incompatible types, you will get an exception.

In this article you will take a look on the Object class the base class for all data types in the .NET Framework. You will see also how to give your custom type a new look by overriding the Object class virtual methods.

This article explains how to create a Class Library and how to use a Class Library (Calculator.dll) in a Console Application.

In this article I'll try to explain a cool feature introduced with .NET 3.5. Known as Func, also named by some developer as a readymade delegate.

In this article you will learn how to create a simple Calculator Class in C# 6.

In this article, you will learn about the types of classes and their characteristics.

Threading in C# empowers concurrent task execution within a single process. Enhance application performance, responsiveness, and scalability for complex operations. Learn the basics and explore advanced topics.

Closures In C# Demystified" is a concept that helps clarify the behavior of closures in the C# programming language. A closure is a function that captures variables from its outer scope, allowing those variables to persist even after their outer function has finished executing. Closures are often used when working with delegates, lambda expressions, and local functions in C#.

This tutorial shows you how to create, send, and received messages using MSMQ from the .NET base class library (System.Messaging) and C#.

Tutorial of how to bind List<T> to the listbox/dropdown list. Following are some simple steps to bind your listbox/dropdown list to List<T>.

In C#, extension methods are a powerful feature that allows you to add new methods to existing classes without modifying their source code. A custom extension method in C# is a user-defined method that is added to an existing class or interface using the this keyword as the first parameter of the method. This enables you to invoke the extension method on instances of the target class or interface as if it were a native method.

In C# 4.0 and later versions, the introduction of the dynamic type brought dynamic typing to a primarily statically-typed language. The dynamic type is designed to provide flexibility in scenarios where the data type of a variable may not be known until runtime, such as when working with COM objects, interacting with dynamic languages like Python, or dealing with data from external sources like web services and databases.

In this article I explain how to create a linkedlist and the various operations that we perform on linkedlists.

This C# programming guide provides a comprehensive exploration of sorting and searching algorithms, along with a selection of other useful programs. Whether you're a beginner looking to learn the fundamentals or an experienced developer seeking to sharpen your skills, this guide covers essential algorithms and practical applications to help you become a more proficient programmer.
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