Arrays in C#

Share this…Facebook0TwitterLinkedinPrint Post Views: 508 An array is a data structure that contains a number of variables that are accessed through computed indices. The variables contained in an array, also called the elements of the array, are all of the same type, and this type is called the element type of the array. Array types […]

Struct in C#

Share this…Facebook0TwitterLinkedinPrint Post Views: 586 Like classes, structs are data structures that can contain data members and function members, but unlike classes, structs are value types and do not require heap allocation. A variable of a struct type directly stores the data of the struct, whereas a variable of a class type stores a reference […]

Constructors and Destructor in C-SHARP

Share this…Facebook0TwitterLinkedinPrint Post Views: 467 Constructors C# supports both instance and static constructors. An instance constructor is a member that implements the actions required to initialize an instance of a class. A static constructor is a member that implements the actions required to initialize a class itself when it is first loaded. A constructor is […]

Other function members in C-SHARP

Share this…Facebook0TwitterLinkedinPrint Post Views: 423 Other function members in C-SHARP:- Members that contain executable code are collectively known as the function members of a class. The preceding section describes methods, which are the primary kind of function members. This section describes the other kinds of function members supported by C#: constructors, properties, indexers, events, operators, […]

Method overloading in C-SHARP

Share this…Facebook0TwitterLinkedinPrint Post Views: 441 Method overloading permits multiple methods in the same class to have the same name as long as they have unique signatures. When compiling an invocation of an overloaded method, the compiler uses overload resolution to determine the specific method to invoke. Overload resolution finds the one method that best matches […]