REST API Concepts

REST API Concepts

In this article, you will understand the REST API Concepts. Before understanding REST API Concepts, first you need to know what is basically an API? An API or Application Programming Interface is an interface between software applications that allows them to communicate. API may represent a set of classes that help us build a software …

REST API Concepts Read More »

Examples of Static Constructors in C#

Examples of Static Constructors in C#

In this post, I will explain a few Examples of Static Constructors in C#. The static constructors in a class serve the purpose of initializing the static fields in that class. Therefore, if you have the static fields defined in a class, then use the static constructor to initialize them. Since static fields are applicable …

Examples of Static Constructors in C# Read More »

Private and Static Constructors in C#

Private and Static Constructors in C#

In this post, I will cover Private and Static Constructors in C#. Private constructors restrict the creation of objects. In fact, if the private constructor is there, you cannot create objects in a similar fashion. You can only use private constructors inside some method of that class only. In contrast, if you define a constructor …

Private and Static Constructors in C# Read More »

Constructors in C#

Constructors in C#

Constructors in C# create the objects. Basically, the compiler provides a special function in a class called a constructor which it invokes automatically on the creation of an object. In this post, you will learn three types of constructors used in C# programming language – the default constructor, parameterized constructor, and the copy constructor. However, …

Constructors in C# Read More »

C# Arrays

C# Arrays

C# Arrays refer to the collection of several values all belonging to the same data type. I will explain C# Arrays with a few simple examples. So, if even if you are not familiar with other programming languages, you will not have any difficulty in understanding. Let us discuss the declaration syntax first. Array Declaration …

C# Arrays Read More »