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.

Although binary search trees (BSTs) are used widely, as data gets added, binary search trees tend to degenerate into an unordered linked list over time. The "red-black tree" is a related type of binary tree that's often more suitable for certain types of search operations. This article discusses how red-black trees facilitate faster searches and become less disordered over time than similar data structures, and shows how to build and search a red-black tree in C#.

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 second principle with an example. I covered the first principle in my previous article.

Learn how to implement IEquatable in C# to compare class instances by property values, such as a student ID, instead of object references.

Learn how to sort C# objects by implementing IComparable for default ordering and IComparer for custom ascending or descending comparisons.

Build a C# Windows Forms application that generates randomized MIDI melodies using music theory templates, design patterns, and configurable rhythm and scale settings.

In this article, you will learn about the API - Automation using Xunit.

Asynchronous programming is a type of parallel programming that enables us to execute tasks separately from the main application thread.

In this article, you will learn about the Circular linked list in C#.

A Regular Expression, or Regex, is a pattern we search for in a text. Regex helps with matching, locating, and managing text.

DateTime extension function to calculate a person's age and return the years, months and days information. Covers leaper DOBs (Feb 29) etc.

In this article, you will learn about the Doubly Linked list in C#.



An extremely powerful and flexible way to export data to any text format (including XML & JSON)

This article aims to guide fellow developers to configure Automapper to use IoC while creating Destination objects. It also shows how to configure Automapper to configure maps at runtime when required.

C# 8.0 has many improvements to existing features including pattern, indices and ranges. Some of the improvements are discussed with example here.

In this article is explained how to use system Clipboard API capabilities, and get Yourself an application functionality such as Spike in MS Word.

This article demonstrate how to create extension method for long type and it can be used across all your classes within your project.

In this article, you will learn about Datetime in C# from a timestamp.

In this article, you will learn how to show asterisks instead of characters for password input in console application.

In this article, you will learn about check empty input using recursion in console application.

In this article, you will learn about what C# is and what kind of software applications we can build using C# language.

Learn how the C# var keyword infers local variable types, where it can be used, its restrictions, and when it is appropriate for anonymous types and LINQ queries.

Lambda expressions are similar to anonymous methods introduced in C# 2.0, except that lambda expressions are more concise and more flexible.

In this article you will learn how to save image in Row Format / Bytes Into Database and Fetch From Database In C# Windows Desktop Application.

In this article, you will learn how to put the fun in c# local functions.

Learn the C# 9 pattern-matching enhancements, including type, parenthesized, relational, and combinator patterns, with an overview of how pattern matching complements object-oriented programming.

In this article you will learn about Filter Combobox Datasource in C#.

In this article, you will learn how to load Datagridview from database in C#.

In this article, you will learn how to save images in row format/bytes into a database and fetch from the database in a C# windows desktop application.
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