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.

Explore Humanizer, a free .NET library simplifies data formatting for developers. Learn to transform data into human-readable formats effortlessly with practical C# examples.

In this article we will learn how to enable C# 6 / VB 14 settings in Visual Studio.To enable C# 6.0 (or VB 14) features in Visual Studio, you need to ensure that you are using a version of Visual Studio that supports these language versions and configure your project accordingly. Here's how to do it.

In .NET, interfaces are a fundamental concept that allows you to define a contract that classes must adhere to. They are used to define a set of method signatures (and properties) that any class implementing the interface must provide. Interfaces provide a way to achieve polymorphism, where different classes can be treated as instances of a common interface.

Generics in C# 2.0 revolutionize code design by decoupling classes and methods from data types. They're key in creating strongly typed, reusable, and performant code. You declare generics using the `<>` symbol.


In this article, you will learn how and when to use delegates in your project.

In this article, I describe how to convert a list of objects into a lookup collection.

In this article, you will get guidance for building C# apps on Ubuntu MonoProject Introduction.

In the digital era, cloud computing, epitomized by Microsoft Azure, revolutionizes resource management. This article explores the cloud's agility, cost-efficiency, and Azure's transformative impact on businesses' operations and innovation.

In this article, you will learn how to use of interface with real time examples, interview questions and answers about interface in C#.

adding, subtracting, multiplying and dividing of three numbers which will be entered by the user

The article provides an insight on the use of System.Management namespace and the advantages of WMI.

This article is part II of a color syntax editor created back in 2003. It describes how to export the contents of the RichTextBox to Word and Open the Word Document Programmatically.

In this article, you will learn about C# methods and how to implement and use methods in a class.

Parsing large XML documents efficiently can be a challenge due to memory constraints. This approach utilizes the XmlTextReader class in C# to extract specific tags and their corresponding values from a large XML document. XmlTextReader employs a streaming method, allowing sequential navigation through the XML while avoiding loading the entire document into memory. This approach improves performance and reduces memory consumption, making it an effective solution for handling sizable XML data sets.

In this article, we will discuss some of the best practices for writing secure code in C#. These practices include using secure password hashing algorithms to store passwords, validating user input to prevent injection attacks, using parameterized SQL queries, using cryptography to protect sensitive data, using HTTPS to protect data in transit, avoiding hardcoding secrets in code, and keeping code up to date with the latest security patches and updates.

In this article I explain how to create the SortedDictionary and perform various operations of it using its properties and methods.

Discover the Power of C# Tuples: Simplifying Data Structures. Learn how Microsoft's C# language utilizes lightweight Tuples for efficient data grouping, enhancing code clarity, and improving performance.

C# is a strongly-typed language. What does that mean? In the C# language, every variable and constant has a pre-defined type. But what if you are not sure of the type of the variable? This is where dynamic programming is used that was introduced in C# 4.0.

This article describes the implementation of three types of DI using Ninject.

A stack is a data structure that represents a LIFO collection. Learn how to implement Stack in C# using the Stack class.


In this article, we’ll discuss Lazy initialization, the lazy keyword, why to make singleton class a sealed class and what are the differences between singleton and static class.

In this article you will learn how to implement 3-Tier Architecture concepts in ASP.Net.

In this article, we will see how to convert HTML string to PDF by using third party PDF generation library.

Here I show a simple way to develop a Polling/Survey System. It shows results with percentage of votes in a graphical manner.

In this article, I'd therefore like to present a simple program which does all this.

In this article I would like to examine the adapter pattern in C# using a simple example.The Adapter Pattern is a design pattern used in software engineering to enable the collaboration of incompatible interfaces or classes. It acts as a bridge between two incompatible interfaces, allowing them to work together seamlessly. The main purpose of the Adapter Pattern is to make classes with incompatible interfaces work together without modifying their source code.

In traditional ASP, we always had the Application object to store application-wide variables in.In the .NET framework, both static variables and the Application object provide ways to store data that is shared across multiple requests or sessions within an application. However, they serve different purposes and have distinct characteristics. Let's explore the benefits and differences of using static variables compared to the Application object.

This article will demonstrate you, top 10 C# string technical interview questions and their solutions.
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