Dynamic Variable In C# Dynamic Variables: · Dynamic variables are simply can be defined under the category of dynamically Typed variables. · These dynamically typed variables are introduced in the version of 4.0. · These variables know the data type at the run time or simply we can say after the compile time. But basically, this will be identified by the value assigned for the variable · This type of variable can be called as inferred typed variable or can be defined as data type known at the run time. · These variables once a value is assigned or its optional to assign the value at the time of declaration · If assigned, then the type of variable can be changed like string to int or int to string etc. based on t...
Posts
Showing posts from February, 2020
- Get link
- X
- Other Apps
Var Variable In C# Var Variables: · Var variables are simply can be defined under the category of strongly Typed variables. · These Strongly typed variables are introduced in the version of 3.0. · These variables know the data type at the compile time or simply we can say before the run time. But basically, this will be identified by the value assigned for the variable · This type of variable can be called as inferred typed variable or can be defined as data type known at the compile time. · These variables once a value is assigned or its mandate to assign the value at the time of declaration · If assigned, then the type of variable cannot be changed like string to int or int to string etc. · ...
- Get link
- X
- Other Apps

Indexer In C# C# indexers are commonly known as virtual arrays. A C# indexer is one of the properties of a class that variable can be used to access or use the other member of the same class using the index of an array. We can say that indexer property is named as class property. Using the Class Property, we can access a member variable of a class or struct. In C#, indexers will be created using Keyword - “this”. Indexers in C# are applicable on both the following. 1. classes 2. structs. Syntax: [Modifier] [returntype] this [argumentList] { get { // get block } set { // set block } } Example, #region Indexer in c# public class IndexerDemo { ...
- Get link
- X
- Other Apps
Lambda expression in C# Lambda expressions in C# is nothing but simply can say that is the combination of delegate and anonymous methods, the “=>” operator is known as lambda operator which will be used for any kind of lambda expressions. Types of Lambda Expression: 1. Expression Lambda: combination of both input and the expression. 2. Statement Lambda: Combination of Both input and a Block of statements required for execution. pu Example, ...
- Get link
- X
- Other Apps

Inheritance In C# What is Inheritance? It’s a process of getting the members of one class from another class by using a relationship between parent and child concept. Class can have members, property or methods, same can be consumed in any of the class by inheriting them from the required class. This operation can be done without inheriting the parent class, but this will violate the OOPS advantage of re- usability because we must duplicate the code of parent to the required class. These are mainly derived from the Base library – “System” Class. Example, Skelton public Demo { Public void Display() { } ...
- Get link
- X
- Other Apps

Attribute in c# An attribute is mainly derived from the library – “System.Diagnostics” but all the attributes were inherited from the Sealed class called Attribute this attribute class were basically implemented with the help of “System.Relfection and System.Runtime.InteropServices”. this will help to avoid writing complicated logic to validate the basic details and to restrict the operation to be performed with the properties/class/Methods. What is Attribute in c#? Attribute is used to provide a details information about a property or class or a method and even for structure behavior as well during the run time of an application execution (even for a console application). An Attribute is defined above a class or method or a property will define the functionality of that element. A attribute is defined by square ([ ]) Brace used above the required element. The .Net Framework supports 2 attributes types: 1. ...