SortedList or SortedList<TKey, TValue> collection class stores key-value pairs in the ascending order of key by default. It implements IDictionary and ICollection interfaces, as a…
SortedList or SortedList<TKey, TValue> collection class stores key-value pairs in the ascending order of key by default. It implements IDictionary and ICollection interfaces, as a…
It can contain/hold elements of any data types. Unlike an array, you needn’t have to declare the size as it increases dynamically. Derived from: IEnumerator…
Collections represent a set of objects that you can access by stepping through each element in turn, in short, they are used to store and…
Not specifying a particular data type is called Generics. In C# we can define generic classes, interfaces, fields, methods, events, delegates, and operators using type…
When you want a method to take variable number of parameters we use params .It must be single-dimension array type. No additional parameters are permitted…
This pattern is commonly used to solve array problems very efficiently. Whenever an array question deals with finding two numbers in an array that satisfy…
similar to array linked list is also a linear data structure. Each element in the linked list is actually a separate object while all the…
When you define a class, method constructor, or field as static it means that a thing will only have one instance of it and it…
Document Object Model (DOM) When we say a webpage is loaded we mean a document is loaded which contain various object like HTML, head, body…
Sorting data means arranging it in a certain order, often in an array-like data structure. You can use various ordering criteria, common ones being sorting…
Its a collection of similar items stored in contiguous memory locations. It has 3 operations Insert, Delete, Search. Using 2 pointers to resolve a problem:…
In OOPS string is an immutable object, i.e any updates to the string will result in creating new memory on the heap sometimes leading to…
It is a class type variable without any name, that can contain only read-only properties. It cant contain other members, such as fields, methods, events…
When I was pursuing my degree, I had taken a course Management-101. Which introduced me to SWOT Analysis for business evaluation. But, never did I…
Dependency Injection with .NET inbuilt Dependency Injection framework
Dependency Injection is all about removing the dependency of high-level modules on the low-level modules and those that achieve Decoupling. Let’s look at the following…
AutoMapper It is a simple Object – Object mapper, through which we can transform an input object of one type into an output object of…
Reactive Forms For using reactive form you would need to inherit ReactiveFromsModule into your module. So reactive forms give you more control over your forms…
Objects let vs var vs const arrays spread operator (…) code Snippets Check Enter is pressed or not onKeyUp($event){ if($event.keyCode === 13) console.log(“Enter is pressed”); } getting value from a input tag…
Event Bubbling: on click of the button, both button and div click events are propagated and will keep propagating till the root. To stop this…
List Strategies Sample Program:
Setting up the Angular Development Environment Node Angular CLI (command npm install -g @angular/cli) Creating your First Angular Application To create your first Angular Application…
CMD Change Drive “drive:” F: Change Directory “cd path” “cd downloads/MyFolder” list all files dir dir Add New Folder md filename md “Project Files” Add…
It is a process of storing the reoccurring calls to a function and use them if they get called again. Used for runtime optimization. Applying…
Debunking time complexity notation Name Notation Description Constant Time 1 No Matter how many elements we’re working with, the algorithm/operation will always take the same…
OAuth2 with Angular 9 We are going to build an Angular App uisng the angulatx-social-login package and will be using Google as my authentication provider.…
Anagrams Check if 2 strings are anagrams of each other. One string is an anagram of another if it uses the same characters in the…
this is a reproduction of the folowing blogs Digital Identity It refers to a set of attributes that define an individual user in the context…
This Pattern lets you ensure that a class has only one instance, which provides global access point to this instance. Where this pattern is best…
With the boom in the software and seeing new languages and frameworks on recent bases companies and individuals are realizing the importance of the core…
Nested Paths In Large Application: Commonly, we have many feature components, Services, and other files in Large Applications. Sometimes these may be located in a…
Parent to Child: Sharing Data via @input decorator It works by using the @input decorator to allow data to be passed via the template. child.component.ts…
Well its very often that we forget what we learn if leave it unpractice. So documenting the things which learn is always a good idea.…
These are a set of reusable solutions (templates) for solving the commonly reoccurring problems in programming. The idea is to speed up the development process…
It allows an instance of a class to be indexed and accessed as an array. When we define an index for a class then we…
An attribute is a declarative tag that is used to convey information to runtime about the behaviors of various elements like classes, methods, structures, enumerators…
Implementing Dynamic Polymorphism using Abstract: Abstraction in c# is the process of hiding the internal details and showing only the functionality. The abstract modifier indicates…
Sometimes you may want to restrict derived class from overriding the virtual members. So for that, we have “sealed methods” which will restrict the derived…
Polymorphism is a way of having the same name with different forms. The best example would be a Console.WriteLine function. With it, you can write…
Inheritance is a process in which an object of one class can inherit the properties of the other class. It provides code reusability and achieves…
OOPS is a programming methodology which organizes the programs as Object and data, rather than action and logic. This shift from action-based to the object-based…
An exception is a problem that arises during the execution of a program. Exception handling provides a way to transfer control from one part of…
A class is like a container that can store properties, fields, events, method, etc to perform a defined activity. You can create your own custom…
We use an enum to declare named integer constants. We can declare them directly in a namespace, class and even in a struct directly. By…
It is a value data type (data structure) that holds (encapsulates) a group of different data types, which can be accessed by a struct variable.…
Arrays stores, a fixed-length collection of the same type of data in contiguous memory locations. Let’s look at a simple example of an array and…
These are a group of statements which collectively perform an event. Let’s look at the syntax of a method definition. Access Specifier: This determines the…
There are times when you would want to run the same block of code several times, for it C# has 4 different types of loop…
There are times when we would want some statements to be executed if and only if some conditions are met. C# includes 3 types of…
It is a symbol that tells the compiler to perform various operations. We have 6 types of operators. Arithmetic Operators Relational Operators Logical Operators Bitwise…
There are times when we would want to convert one data type to another data type. This conversion is called Type Casting. C# provides 2…
Data Types tell the C# Compiler what kind of value can a variable hold. In C# we have many data types like int string, char…
This is a quick tutorial for getting introduced to the C# environment. Both beginners and professionals who want to learn or revisit the concepts can…
Being an IT professional there would be many situations where you would need to understand the run time behavior of your application. i.e what is…
Are you planning to advent into web development, dev tools are a must in your suite, why? You can get more done quicker and cleaner…
Many developers fail to understand that the code they develop must one day be handled by a maintenance team. So it is highly important to…
Is your SQL query taking way too much time to give a result? Are you wondering why is my query taking so much time than…
When we ask a developer what was the first language he Learned/ Worked when he joined the IT profession, he would most likely say its…