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 provides a clear and concise explanation of their purpose and functionality in object-oriented programming. The code example and the subsequent explanation effectively demonstrate how constructors are used to initialize class objects, ensuring that they start with predefined values. The example you provided with the Person class and the usage of the constructor aptly showcases how to create and initialize objects in C#.

In this article you will learn about Break Vs Continue explanation in C# language.

This article explains abstract classes in C#. An abstract class is a special type of class that cannot be instantiated and acts as a base class for other classes. Abstract class members marked as abstract must be implemented by derived classes.

This article explains the ranges and indices introduced as part of C# 8 and demonstrates how to use it in application development.

Let's know the difference between continue and break statements.This article provides an explanation of the continue and break statements in C# effectively highlights their essential functionalities within loops. Both of these control flow statements play crucial roles in managing the behavior of loops based on specific conditions.

This blog effectively explains the Dependency Inversion Principle (DIP) in the context of C# programming, providing a clear understanding of its significance and benefits. The use of real-world examples to illustrate the traditional and Dependency Inversion Principle-based approaches enhances the comprehension of the concept.

Dispose or Finalize Choosing the Right Cleanup Mechanism in C Sharp. This article provides a comprehensive understanding of the Dispose and Finalize mechanisms in C#, along with real-world examples showcasing their practical applications. The code samples and explanations effectively highlight the significance of proper resource management and illustrate when to utilize Dispose and Finalize in different scenarios.

This article on type conversion in C# is comprehensive and informative. It effectively covers the fundamental concepts of type conversion, including implicit and explicit conversions, common conversion methods, exception handling, and custom type conversion. The examples provided throughout the article enhance the understanding of each concept and make it easier for readers to grasp the intricacies of type conversion in C#.

In this article, I will explain to you about Common Interfaces using C#. Common interfaces in C# provide a way to define a contract for classes, ensuring that they implement specific methods and properties. By using interfaces, developers can establish a common set of behaviors that classes must adhere to, enabling polymorphism and abstraction in their programs. Interfaces facilitate the decoupling of code, making it easier to change implementations without affecting the code that uses the interface. Additionally, interfaces play a crucial role in achieving dependency injection, allowing for flexible and testable software architectures. In summary, interfaces in C# promote code reusability, maintainability, and flexibility by defining a standard structure that classes can follow.

This article focuses on the very special class in .NET, the SecureString class, and its uses.

This article shows how you can get property name and method name programmatically instead of writing explicitly.

C# 9.0 introduced a new feature called Init-Only Properties, enhancing the language's capabilities for defining immutable types. Init-only properties allow you to create read-only properties that can only be set during object initialization. This feature simplifies the creation of immutable objects, providing a concise and expressive syntax for initializing properties at the time of object creation and ensuring their immutability afterwards.

The Microsfot Enterprise Library provide us a collection of reusable software components, so software developers can take advantage of them to put them into enterprise use. Now I will share my personal experiences with my friends of how to extend current enterprise library functionality and improve the performance of enterprise applications.

Thisarticle on asynchronous file I/O in C# is well-structured and informative, covering all the essential aspects of the topic. You have effectively introduced the concept of asynchronous programming, highlighted its benefits, and provided detailed explanations with code examples. The sections on reading and writing files asynchronously are particularly well-crafted, enabling a clear understanding of the practical implementation.

Source code and documentation for C# compiler tools, including lexer and parser generators, with instructions for rebuilding and installing the library in the GAC.

In this article, we will be discuss what an interface is and how to easily implement an inheritance in it.In C#, an interface is a reference type that defines a contract for the behavior of a class. It contains only abstract (or in C# 8.0 and later, default) members, which are methods, properties, events, or indexers. Interfaces provide a way to achieve multiple inheritance in C# since a class can implement multiple interfaces.

This article provides a comprehensive overview of the ConcurrentQueue class in C# and its role in managing concurrent programming. You effectively explain the challenges related to concurrency and the various issues that can arise, such as race conditions, deadlocks, livelocks, and starvation. You have also detailed how synchronization mechanisms can assist in managing shared data among multiple threads, albeit with certain drawbacks.

This article explains the basic rules which are combined and called the SOLID Principles. SOLID principles are a set of design principles in object-oriented programming (OOP) that help developers create more maintainable, flexible, and robust software. These principles were introduced by Robert C. Martin and are represented by the acronym SOLID, where each letter stands for a different principle.

Here is code example of how to iterate through all enum values in C#.

You explained the process step by step, starting with the definition of attributes and the implementation of the generator class, followed by the initialization and execution processes. Additionally, you provided a clear demonstration of how to generate a new class with a static property that returns the current date and time as a string. Your use of the StringBuilder class and string interpolation for code generation was a good choice.

This article tells you an additiional way to get reverse processing of array with help of generics and yield.

I've attempted to write the traditional 'Hello World' in different styles. This explores the different possibilities of addressing a problem - 'Hello World' with different features of C# language and .NET framework.

In this article, we are going to learn the new features of C# 8.0, Ranges and Indices. This introduces new operators and new types - System.Index and System.Range.

This article summarizes some of the key concepts around the keyword static that every developer must remember.

A dynamic array in C# does not have a predefined fixed size. Here is a code example of dynamic arrays in C#.

Delegates are a type that reference a Method. When it is assigned by a method it behaves exactly the same as that method. It can be used as parameters and can be returned as a value. So it has same what are the methods have.

Creating Flash animations from PowerPoint presentations in C# involves utilizing libraries like Aspose.Slides, which provides a comprehensive set of features for working with PowerPoint files programmatically. By using Aspose.Slides, you can automate the process of converting PowerPoint presentations into Flash (SWF) format. This enables developers to enhance their applications with dynamic and interactive content derived from PowerPoint slideshows, offering a seamless user experience.

Learn how to use C# out and ref parameters to modify passed variables and return multiple values from methods.
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