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 change display settings (resolution, bits, rotation, etc.) via C# and Win32 API.

When I first read about properties in C#, I was a bit excited and a bit confused. I was glad to see so many inventions, including properties, designed to help programmers be more productive.

C# does manipulate objects by reference, and all object variables are references. On the other hand, C# does not pass method arguments by reference; it passes them by value. Thus, a regular swap method will not work!

This article explains the default Interface implementation feature introduced as a part of C# 8 and demonstrates how to use it in application development.

In this article, I have explained how to convert a DataTable into PDF using C# and iTextSharp.Converting a DataTable to a PDF in C# involves generating a PDF document that represents the data stored in the DataTable. This process is commonly used when you need to present tabular data in a visually appealing and printable format. PDFs are versatile and widely supported document formats, making them suitable for sharing and distributing data.

When you will work with threads and want to access a control on another thread then its post will solve your problem.

In this article, we will learn about some iteration statements in C#.Iteration statements, also known as loops, are essential programming constructs that allow you to execute a block of code repeatedly. They are used to efficiently perform repetitive tasks, iterate over collections of data, and handle scenarios where you want to execute a particular operation multiple times. In C#, there are several types of iteration statements that serve different purposes. Let's delve into each of these and their descriptions.

In this article, we will see how to use C# and GDI+ in measuring the solar power and represent it in form of chart.


A problem which often arises in practice is how to convert a cardinal number to its ordinal equivalent.

In this article, you will learn about Private Constructor - C#.In C# and many other object-oriented programming languages, a private constructor is a constructor that is declared with the "private" access modifier. Unlike public constructors, which are used to create instances of a class from anywhere in the program, a private constructor can only be called within the class itself. Private constructors are often used for specific purposes, such as implementing design patterns like the Singleton pattern or providing controlled instance creation.


In this article you will learn about arrays in the C# language. Arrays Overview, Declaration of Arrays, Reference Type, Array Exception Handling, Multi-Dimension Arrays.

This article will help you to understand how to work with a database using Entity Framework Code First.

Explore Private Constructors in C#: Unveiling Their Roles and Significance. Discover how these constructors influence design patterns like Singleton, control object creation, and encapsulate initialization logic for improved C# applications.

Exception filters were introduced in C# 6.0 as a feature that allows you to specify additional conditions within a catch block. These conditions, known as exception filters, determine whether the catch block should handle a particular exception or not, based on the result of a specified Boolean expression.

Delve into the significance of sealed classes in C# OOP. Uncover their role in defining code boundaries and inheritance. Gain insights into their benefits, optimizing security and performance. Master the art of using them judiciously for enhanced code predictability and maintainability.

Discover the significance of C# structs - lightweight alternatives to classes. Efficiently manage memory and enhance performance with value types while considering scenarios and pitfalls for optimal implementation.

C# records provide a more elegant and succinct way to define DTOs. In this article, we will explore the benefits of using C# records for DTOs with a concrete example.



Dictionaries are essential tools for managing data efficiently through key-value pairs, offering rapid retrieval and manipulation. The Dictionary<TKey, TValue> class empowers developers to effectively add, access, and update items, enhancing performance and problem-solving capabilities.

Harness the Versatility of C# Generics: Boost Code Reusability and Type Safety. Dive into how Generics empower adaptable, efficient code, accommodating various data types while maintaining robust type checking.

Explore the fundamental potency of C# delegates—vital for encapsulating methods as first-class entities. Empower callbacks and event management for efficient C# application development.

Abstract classes serve as base classes for derived classes. They can't be instantiated directly and encompass both abstract and non-abstract members. They're useful when default functionality should be split among subclasses. Mark them with the "abstract" keyword.

Loading Related Entities in Entity Framework refers to the process of retrieving and populating associated data between entities within the Entity Framework, a popular object-relational mapping (ORM) framework for .NET applications. This involves fetching data from a database that is related to a primary entity, such as retrieving child entities of a parent entity or navigating through associations between entities.

In this article you will find it very easy to create an array of buttons using C#; you can use this to create a tool for searching in a database file.

Delegates, Anonymous Methods, and Lambda Expressions in C# introduces essential concepts in C# programming related to delegates, anonymous methods, and lambda expressions. These features enable developers to create flexible, reusable, and concise code for handling method references, encapsulating behavior, and enhancing functional programming within C# applications.

‘var’ is a contextual keyword that was first introduced in C# 3.0. It’s described as contextual because it’s only a keyword when used in a certain context - in other contexts it can be used as an ordinary identifier.

Handling DateTime Data Type in C#: Part 1 is a guide that focuses on effectively managing and manipulating DateTime data within C# applications. This guide likely covers essential concepts related to parsing, formatting, arithmetic operations, and time zone handling with DateTime objects in C#. It provides developers with foundational knowledge to work seamlessly with date and time values, ensuring accurate representation and interaction with temporal data.
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