Category: C Sharp

0

C# Jagged array

A jagged array is a special type of array. It stores arrays as it’s elements. The length of each row of a jagged array can differ. A jagged array is also called an Array of Arrays.

0

C# Multidimensional array

An array is a sequential collection of variables of the same data type. Arrays having more than one dimension is known as a multi-dimensional array.

0

C# Arrays

An array is a sequential collection of variables of the same data type. In C#, an array can be single dimensional, multidimensional or jagged arrays.

0

C# Enum

The enum keyword is used to declare an enumeration. An enumeration is a set of named constants. It is a primitive data type, which is user-defined.

0

C# var keyword

C# 3.0 introduced a new implicit type var for variables that are declared at method scope. The datatype of these variables is determined by the compiler when a value is assigned to it.

0

C# Params keyword

The params keyword is used to specify a parameter that takes a variable number of arguments. This keyword can be used when you are uncertain about the exact number method parameters.

0

C# Ternary operator

C# has a special conditional operator known as ternary operator. This operator compares two values and determines the third value based on the comparison.

0

C# Type conversion

For statically-typed and compiled languages like C#, a variable cannot be re-declared or assigned a value of another type after the variable is declared. However, sometimes you need to copy or pass these variables to another variables or methods of different datatype. In such cases, should perform type conversion.

0

C# Constructor

A constructor is a special member function of a class. The constructor is executed when an object is created.