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.

This article explains the use of the SVN API with C# to browse files.

.NET Framework Class Library provides several interfaces to support additional functionality in collections such as ICollection, IList, and IComparable. IComparable interface is used to support the sorting in collections.In this article, I will discuss how to use IComparable interface to design sortable arrays.

Ref returns were introduced in C# 7.0. Learn how to use ref returns in C#.

In this article we will see how we can read data from CSV File and bulk insert into the Database table.

This is very short and quick article to demonstrate various uses of lambda expressions in C#.

In this article, we will generate a Python wrapper around C# methods using reflection methods of .NET framework.

This article explains what happens if a finally block throws an exception with a simple example.To summarize, the "finally" block ensures that certain code is executed no matter what, whether an exception is thrown or not, making it a crucial component of robust exception handling and resource management.

In this article we will learn the IList interface in the .NET class library.

This article show to solve the problem of how to set an enum type in a dynamically loaded DLL.

Stack is a data structure in programming that provides a first-in-first-out data access paradigm. In this article and code example, you'll learn how to implement stack in C# to solve expressions.

Basic intention of this article is to teach you how to build simple generic classes by our own.

This article describes how to use a Generic List as a data object and how to fill it with a generic method.

In this article, you will learn about Newtonsoft JSON Deserializing in C# with an example.

Delegates in C# are a powerful feature that allow you to encapsulate a reference to a method inside a delegate object.

In this article, you will learn how to send emails with only one line of code.

IComparable is a C# interface for comparing objects within the same type, enabling sorting based on specific criteria. Explore its definition, usage, and benefits in facilitating object comparison and sorting.

In this article we learn how to add a digital signature to a PDF Using a PFX file and iTextSharp In C#

Learn all about C# Intermediate Abstract Classes in this comprehensive guide. Understand the concepts, usage, and benefits. A must-read for C# developers aiming to enhance their skills. Click to become a C# Abstract Classes expert!

In this article, you will learn about a C# export to Excel from datagridview.

In this article we learn about how to convert string to numbers in c#

Explore methods to convert integers to characters in C#. Learn type casting, Convert.ToChar(), and char.ConvertFromUtf32() with examples.

We will look into how we can dynamically load C# code into our solution, compile this code, run it, and then interact with it to call methods

Learn about C# tuples: immutable data structures for grouping elements, useful for returning multiple values from methods.

Learn how to handle null properties in C# with various null operators and simplified code snippets. Happy coding!

We will have an overview of the early return pattern and some examples in C#

This article provides a simple sample of an application that clicks a button in another application.

Learn about collections in C#, including commonly used collection types such as lists, queues, stacks, and dictionaries. This tutorial covers the basics of collections, how to use them, and how to select the right collection for your needs.

This article explores the process of building an image optimizer using C# WPF (Windows Presentation Foundation).


One of the aspects of code quality we can look at is cohesion. If code is highly cohesive it is also much more testable, reusable, readable and maintainable (all the good things in life). Likewise, if code has a low level of cohesion it is often very hard to understand at a glance and difficult to test and maintain. In this article we'll take a look at a concrete example of code that does not follow the Single Responsibility Principle and as a result has low cohesion and walk through the refactoring it takes to modify the code to be more highly cohesive.
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