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.
ICreating a hard disk partition using C# involves interacting with the Windows Disk Management API to programmatically manage disk partitions. This process typically requires administrative privileges as it involves low-level operations on the system's storage devices. Here are the high-level steps to create a hard disk partition using C#.

This article is a primer to the file sync provider under the Microsoft Sync Framework.

The server acts as a File Sharing Server, it listens for multiple clients to connect to it. The Clients have a option to either Download any of the Files available with the server for download.

Simple Contact Us page with Catcha to avoid spam mail.

In this article, we will try to implement a few real-time applications of asynchronous programming. Here we will see in which scenario we can implement asynchronous style.

In this article, you will learn about how to make method parameters optional in C#.

The Singleton Design Pattern is one of the creational design patterns used in software engineering. It is primarily employed to ensure that a class has only one instance and provides a global point of access to that instance. In C#, this pattern is often used to control access to resources that are shared across the application, such as configuration settings, database connections, and caching mechanisms.

Before we start tampering around the code, lets understand why we need a generic type?

Learn how to implement mixin-like behavior in C# 4.0 using marker interfaces, extension methods, and ConditionalWeakTable for per-object state.

A string is a reference data type in C#. A string is a sequential collection of characters that is used to represent text. The value of the String object is the content of the sequential collection of System.Char objects, and that value is immutable (that is, it is read-only).

Learn how to declare, invoke, and use C# delegates, including type-safe method references and multicast delegates.

This is a trial to print Invoice with C# using PrintPreviewDialog control and PrintDocument control.Printing an Invoice in C#: This process involves designing an invoice layout, creating a PrintDocument object, handling the PrintPage event to draw invoice content, optionally displaying a print dialog, and printing the invoice. Handle exceptions and test thoroughly for a functional invoice printing solution.

Learn how to use the C# Stack class for LIFO collections, including adding items with Push and removing them with Pop.

Want to build a Roguelike game with C# in 5 minutes? The following is a really quick game I built in about 2 hours and shows how easy it is to get a simple game going.

This article describes a new feature of C# 6.0, the null propagation operator.

Comments and Documentation are the most hated tasks by programmers. By using C# programmers can automatically build the documentation and comments in the code. This documentation is an XML file which is more or less self explanatory.

In this quick article you will take a look at method parameter modifiers in C#.

In this article I have explained some important concepts related to the C# language such as Implicit & Explicit type conversion, Boxing and UnBoxing of data types, static and nonstatic methods and the technique of creating automatic methods i.e. automatic method creation.

If you come from a C++ or Java background to C# then you will of course notice some strange keywords introduced to this new language, especially the new and override modifiers.

This article demonstrates how to integrate "login using the LinkedIn credential" in your web application.

C# dynamic keyword declares a dynamic variable that can store any type. Lean how to use a dynamic type in C# and how to convert a dynamic type to other types in C#.

In this article we will create a code completion window using C# that automatically pops up the list of syntax or keywords and inserts those keywords into a RichTextBox and removes that list once the action is completed.

Discover how pattern matching in C# can simplify your code, improve readability, and enhance your development workflow. This comprehensive guide explores various pattern types, including type, constant, property, tuple, and positional patterns, and reveals how they can be applied in real-world scenarios.

This application will allows us to send,receive messages securely using MSMQ service present in windows OS.

This article explains how to find and close the window using Win API. To find and close a window using the Windows API in a C# application, you can use the FindWindow function to locate the window by its title or class name, and then use the SendMessage function with the WM_SYSCOMMAND and SC_CLOSE parameters to send a close command to the window. Here's a step-by-step description.

In this article I explain how to use enum, create an enum and get values from an enum with their enumeration list.

C# (C Sharp) is a versatile programming language developed by Microsoft. It offers a rich set of keywords that enable developers to create powerful and efficient applications. Keywords like `class` allow the definition of custom data structures and behaviors, while `async` and `await` facilitate asynchronous programming, making it easier to handle tasks concurrently. The `delegate` keyword empowers event handling and callbacks, fostering interactive applications. C# supports object-oriented principles with keywords like `interface` and `override`, promoting code reuse and maintainability. Additionally, `try-catch` ensures robust error handling, and `readonly` and `const` enforce data immutability. These keywords, among others, make C# a preferred choice for building a wide range of software, from desktop applications to web services and games.

In summary, use const for compile-time constants shared across all instances, and use readonly for instance-specific constants that can be set at runtime but remain unchangeable after initialization.
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