Tagged: c#

0

C# try-finally

Code specified in finally block is always executed when control leaves a try block. It can be used to release resources used in the try block. For example, closing any database connections or files opened in the try block.

0

C# throw keyword

In C#, throw keyword is used to raise an exception manually. Exceptions derived from System.Eception can be thrown using throw keyword.

0

C# Exception handling

An exception is any error that occur during the execution of the program. The C# exception handling mechanism helps you to detect and handle these run-time errors.

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.