
In this article, you will learn about Read only members in Structs in C# 8.0.



In this article, you will learn about default Implementations of Interface Members in C#.

In this article, you will learn how to run a Visual Studio 2019 Solution In Visual Studio Code.

In this article, you will learn about Visual Studio Dev Essentials Subscription.

In today’s article we will see how to use the performance profiler in Visual Studio 2019 to check various diagnostic information for our application in .NET. This is an extremely critical part of application development and we can consider performance as one of the most important aspects of any application. We will look at the CPU usage but there are other items which can be profiled as well.

ASP.NET Core's request pipeline allows custom middleware components for handling tasks like authentication, and logging. Learn to create and integrate custom middleware for tailored application needs.

We often come across a scenario where we need to run some function for a long time where this function would react on some trigger and then run some code logic. This is where we need to apply a long running task. This task stays active and responds to a specific trigger. In today’s article we will look at creating such a long running task. We will pass to it the function that needs to run and when the trigger is activated a single run of the function will be executed.

A common term we hear nowadays is NoSQL databases. These are being very strongly promoted by all vendors. One of the most common NoSQL databases these days is MongoDB. In this article, we will discuss what a NoSQL database is, when it must be used and then we will look at an example of how to install, create, and populate this database. Finally, we will look at how to access data from this database using an ASP.NET Core Web API.

C# is an object-oriented programming language. These days whenever you talk about object-oriented programming you hear the acronym, SOLID. These are five design principles introduced by Michael Feathers to make our object-oriented applications easy to understand, maintain and expand as future requirements change. Today, we will look at the fifth and final principle with an example. I covered the first four principles in my previous articles.
Learn how to apply the Interface Segregation Principle in C# by splitting a broad employee interface into focused interfaces for full-time and contract workers.

C# is an object-oriented programming language. These days whenever you talk about object-oriented programming you hear the acronym, SOLID. These are five design principles introduced by Michael Feathers to make our object-oriented applications easy to understand and maintain.

C# is an object-oriented programming language. These days whenever you talk about object-oriented programming you hear the acronym, SOLID. These are five design principles introduced by Michael Feathers to make our object-oriented applications easy to understand, maintain and expand as future requirements change. Today, we will look at the second principle with an example. I covered the first principle in my previous article.

C# is an object-oriented programming language. These days whenever you talk about object-oriented programming you hear the acronym, SOLID. These are five design principles introduced by Michael Feathers to make our object-oriented applications easy to understand, maintain and expand as future requirements change. Today, we will look at the first principle with an example and in the following articles we will cover the remaining principles with examples of each.

Learn how to implement IEquatable in C# to compare class instances by property values, such as a student ID, instead of object references.

Learn how to sort C# objects by implementing IComparable for default ordering and IComparer for custom ascending or descending comparisons.

One of the most common and ever-growing applications in the web space these days are Single Page Applications (SPA) which are developed used JavaScript frameworks like Angular, React etc. for an application's front end. You will find many articles and tutorials on building Angular applications using Visual Studio Code. However, Visual Studio 2019 comes with a very neat template for building Angular applications. In this article, we will explore this template, how to enhance it, and how to add our own functionality to it.

One of the most common aspects of any application is the ability to write logs. These not only help to troubleshoot problems that arise out of an application but also help to keep track of how things are going and take pre-emptive measures to stop problems before they even happen. In this article, we will look at the most common type of logging that we expect to find in any application: a file log. We will see how to implement a file log in an ASP.NET Core MVC application.

A buzz word you may have heard these days is containers and how they have many advantages over the traditional Virtual Machines concept we have seen in the past. Without a doubt, containers are a great way to create microservices and have them live in their own space which makes them easy to move and upgrade. Also, deployment to the cloud becomes much efficient with containers, as cloud providers like Microsoft Azure provide out of the box solutions for storing and hosting containers. In this article we will look at placing a .NET Core Web API application inside a container, hosting the container in an orchestrator which makes the container available for use, and finally, running and using this containerized application.

In this article we will look at gRPC and how to implement gRPC solutions using Visual Studio 2019. gRPC is a high performance, open-source and easy to use RPC framework developed by Google. It has gained lots of popularity as it can be used across platforms and has lots of features for easy documentation. Visual Studio 2019 includes a template for building gRPC server applications, and we will look at building a simple gRPC server application. We will also build a client application to consume the API that is available on the server.

Today, we will look at one of the most important aspects of any application, and that is security. The two main methods to ensure security in an application is using Authentication and Authorization. Authentication can be defined as confirming the user’s identity. That is to confirm the user is who he/she claims to be. The next step is Authorization, where we ensure that the user only has access to functionality that his/her role in the application permits. We will build a sample in an ASP.NET MVC Core application and apply Authentication and Authorization to it.

In this article we will look at creating a Fluent API class in C#.NET. In a Fluent API, we can link together different functionality to get a particular result. We see this used many times in Entity Framework Core and when manipulating List<T> type of items using lambda expressions.

So basically, what are design patterns? We can define design patterns as proven techniques to achieve certain tasks. They give us a basic template to design our application using templates that have proven to meet the requirements of performance, maintainability, extensibility, scalability and security. Object oriented programming is the backbone of software development these days and this holds for C# development as well. Design Patterns: Elements of Reusable Object-Oriented Software (1994) is a software engineering book which describes software design patterns. The book was written by Erich Gamma, Richard Helm, Ralph Johnson, and John Vlissides, with a foreword by Grady Booch. It describes 23 classic software design patterns and is regarded as an important source for object-oriented design theory and practice. The authors are often referred to as the Gang of Four (GoF). This book includes examples in C++ and Smalltalk. These design patterns have been divided into three categories and in this article, I will provide two samples from each category in C#.

We have all used classes and structs to define entities in our .NET applications. While great to use, and forming the backbone of any .NET application, these are heavy-weight objects which can define both data and actions. On some occasions, we need this entity only to hold our data without any need for actions to be associated with it. That is when we can use the much less known object, Tuples. We will take a quick look at Tuples in this article and see how and where they can be used and look at the recent version of Tuples, the ValueTuple.
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegisterMembers onlyWrite an article and earn +1,000 SHARP when it is approved.
Write an article