C# language has an important feature called Indexer which allows us to represent objects as arrays. In this post on Learning Indexers in C#, I will discuss Indexers and also demonstrate their usage with the help of a few examples. Basically, an indexer is a syntactical convenience that enables us to work with arrays that …
Creating Classes in TypeScript
In this post on Creating Classes in TypeScript, I will explain how we can define a class in TypeScript with the help of a few examples. Also, I will also explain the implementation of inheritance in TypeScript with an example. Creating Classes in TypeScripteScript allows creating classes and this feature makes it an object-oriented language. However, the …
Introduction to Programming in TypeScript
Microsoft introduced TypeScript in October 2012. So if you are already familiar with web development, then you must have worked with JavaScript and TypeScript is the superset of JavaScript. Why should you consider developing in TypeScript rather than JavaScript which you are already familiar with? In this post on Introduction to Programming in TypeScript, I …
Architectural Constraints of REST API
In this post on Architectural Constraints of REST API, you will learn six key architectural design constraints of REST API. Basically, the six architectural design constraints that I list here form the guidelines to develop and deploy web services that allow clients to access resources on a web server. These constraints are – Client-Server Stateless …
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 application. Therefore, we …
Object Initializers in C#
Object Initializers in C# provide us a way to initialize objects without using constructors. Examples of Object Initializers in C# You can use the object initializer syntax to initialize an object as well as to initialize a collection also. In this section, you will find several examples of the usage of object initializers. Example 1: …
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 …
When should We Use Private Constructors?
In this post, I will answer the question When should We Use Private Constructors? For the basic information on private constructors, you can read this post on Private and Static Constructors in C#. As you already know the basic purpose of defining a constructor in a class is to create the instance of that class. Further, …
C# Basic Examples
In this post on C# Basic Examples, you will learn some of the simple code examples that you must know to start learning the C# language. In fact, these are the basic examples that we do to learn any new programming language. As the C# is an object-oriented language, so we can only write code …