How Controllers Handle Requests in ASP.NET Core MVC?

ASP.NET Core MVC provides you with a unified web programming model through which you can create web APIs and web UI. The MVC pattern is called the design pattern. It is essentially separate from any other particular framework or language. It is a way of approaching designing a program that you can apply with any... » read more

How to Use Throw Expressions in C# 7.0

An unexpected runtime error arises in the code when an application or system constraint is being violated by the program, for example, when a program is dividing a number by zero, trying to connect to a non-existing database, or trying to open an XML file which is corrupted. We need a block of code to... » read more

What’s New in ASP.NET Core 3.0?

What is .NET Core? .NET Core is an open source, latest software development Framework by Microsoft which is used to create multiple types of applications. .NET Core is completely independent of the .NET framework and is written from scratch having different characteristics and different features. It can be used with almost all operating systems including... » read more

Create Your First C# Program

Introduction C# (pronounced as C Sharp) is an object-oriented programming language that runs on the .NET Framework. It allows developers to create robust and secure applications. Let’s talk about the basic concepts of C#. Variables: Variables are used in the program to store data. When a variable is created, it reserves a memory location to... » read more

C# Enum

In this lesson, you will learn about enum in C# with examples, and when to use them. C# Enum Enum or Enumeration is a set of integer constants that are used to assign name or string value. An example of is the days of the week, where the name can be ‘Days’, and the enumerators... » read more

C# Struct

In this lesson, we will explain the use of structs in C#, when to use them, and the different between structs and classes. C# Struct Structure or struct is a value type that can contains variables, functions, methods, constructors, indexers, operators, event, and properties. Structs can implement interface, however they cannot inherit from other struct... » read more

C# Visibility

In this lesson, you will learn about the different types of visibility and access modifiers in C# and how/when to use them. C# Visibility Visibility or access modifier allows us to define the way a class, method, variable, or a property is seen and accessed. Encapsulation is one of the uses of a private modifier,... » read more

C# Polymorphism

In Object oriented programming, polymorphism is a concept that allow us to defined a function in a based class and override it in the child class. Also, it allows us to have multiple function with the same name, but different implementation. 

C# Static Members

In this class, we will explain the static member, and how to use it in classes, variable, methods, and other members. C# Static Members In C#, static keyword can be used with classes, variables, properties, operators, methods, event and constructors. For classes, the static keywords will make it non-instantiable, meaning the class can’t have an... » read more

C# Interface

In this lesson, you will learn about interface in C# with example. Also, you will learn the difference between abstract class and interface. Definition of Interface Interfaces are objects in C# that looks as same as a class, but with no implementations. In other words, the interface contains a declaration or signature of methods, events,... » read more

C# Abstract Class

In this lesson, you will learn about abstract classes with example. Also, you will learn when to use abstract classes in your program.  Definition of abstract class In c#, abstract class are mostly used to define base class. As discussed previously in the inheritance lesson, we learned that a base class is to top class... » read more

C# Inheritance

In this lesson, you will learn about one of the most important concepts in object-oriented programming, which is inheritance. You will learn how to create a based class and derive class, and how implement multi inheritance and sealed class in C#. What is inheritance in C#? Inheritance is an object-oriented programming concept that allows programmers... » read more

Objects and Classes in C#

In this lesson, you will learn how to create classes and their properties, methods, events. Also, you will learn how to set up the access level for a class and its members, as well as learning other object-oriented concept, such as Encapsulation, constructors, and destructors. What is a class in C#? In object-oriented programming, a... » read more