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 use Dapper in a C# WPF application to perform create, read, update, and delete operations on a SQL Server Student table.

Shows how to create a MySQL table and use a C# Windows Forms app to select an image and save its file details, including its path, to MySQL.

This article is a continuation of my first article on Specification Pattern in C#. I recommend that you read it for a better understanding of background concepts. In the first part of this article, I introduced the specification pattern and how it can help to avoid violating the ‘O’ of SOLID principles of programming. Here, I’ll basically show how two or more specifications can be combined together to achieve more interesting results.

The code snippet in this article converts different integer values to a byte array and vice-versa using BitConverter class.

The code snippet in this article converts different integer values to a byte array and vice-versa using BitConverter class. The BitConverter class in .NET Framework is provides functionality to convert base data types to an array of bytes, and an array of bytes to base data types.

First, I’d like to say that I wrote this article because of the difficulty I faced when I tried to research the specification pattern. I saw a lot of confusing videos and articles online. I was eventually able to get a hang of it so I decided to take the time to document it to help others.

Extensible Markup Language (XML) is used to describe data. The XML standard is a flexible way to create information formats and electronically share structured data via the public Internet, as well as via corporate networks. The XML tags are not pre-defined in XML. You will have to create tags according to your needs.

This article demonstrate how to parse a C# object into JSON string without using any .Net serializer and third party libraries.

This article shows how to draw patterns in a C# console program.

In this article, I will explain you abstract class and interface. Which is the most important topic to cover? Most of the interviewer ask about abstract class and interface. I will cover all possible interview questions which I have faced during my interviews. I thought why not create an article on this topic and help people who really want to know. Let’s start.

Learn how to define and use C# indexers to access class members with integer or string keys, including overloaded indexers and comparisons with properties.

In this article you will learn about Access Specifiers in C# language.

In this article. I will explain you object-oriented programming in C#. As we all know that C# is an object-oriented programming language. By using C# language we can develop different kind of application like a console application, window application, web application and mobile application etc. it is developed by Microsoft.

Today, I am going to explain in details about dependency injection in C#. This article is for those developers who don't know anything about Dependency Injection (DI). Just go through below all the example along with code comments to get a better understanding of DI.

This article is all about generics in C# and how to improve performance overhead.

In this article, I am trying to explain delegates in an easy to understand way, hopefully after going through this article, you will feel comfortable using delegates and answering any questions related to delegates.

The article explains type of arrays in C# with easy to understand examples. Mixed Arrays, Jagged Arrays, Multi Dimensional Arrays, Single Dimension Arrays.

In this article you will learn about Polymorphism in detail. What is Polymorphism? Static or Compile-time Polymorphism, Dynamic or Runtime Polymorphism, Virtual modifier, Virtual methods, Difference between method overriding and method hiding, Sealed methods

Extension Methods are a new feature in C# 3.0. An Extension Method enables us to add methods to existing types without creating a new derived type, recompiling, or modify the original types.

This article demonstrates simple code writing or code review tips.

An interesting and useful property of a delegate is that it does not know or care about the class of the object that it references. Any object will do; all that matters is that the method's argument types and return type match the delegate's

The LastIndexOf method returns the last index of an item if found in the List.

Console.BackgroundColor and Console.ForegroundColor in C# and .NET Core sets the background color and foreground color a the console. This code example shows how to change the foreground and background colors using C#.

Here, in this article, I will try to explore the new enhanced feature of ‘ref’ keyword.

Learn how to use AutoMapper in C# to map properties between objects, including DTOs, view models, and custom mappings such as a combined full name.

Learn how to create and use C# extension methods to add functionality to existing types and classes from referenced DLL libraries.

Experimenting with the new features of C# 7. Here I am experimenting with new features of C# 7 like Literals, Local functions, Tuples improvements in C# 7, Pattern matching cases, Async improvement — ValueType Task<T> object, and Deconstruction.

In this article, let us see how to use the latest feature of Tuple in C# 7.0. Tuple is the very effective feature in C# 7.0 and it can be used when we want to return more than one value from a method.

The OpenFileDialog object interacts with the Computer’s API (Application Programming Interface) to present available files to the user and retrieves the user’s file selection back to the program.

Today we will learn something cool feature called Local Functions in our newly upgraded version of C# I.e., 7.0.
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