Arrays in asp.net C#

 Arrays in C#:


Arrays are important to C# and should need lots of more detail. There are following few important concepts related to array which should be clear to a C# programmer:

Type Arrays in C#            

Multi-dimensional arrays:

C# supports multidimensional arrays. The simplest form of the multidimensional array is the two-dimensional array.

Jagged arrays :
    
C# supports multidimensional arrays, which are arrays of arrays.
Passing arrays to functions         
You can pass to the function a pointer to an array by specifying the array's name without an index.

Param arrays  :
    
This is used for passing unknown number of parameters to a function.


The Array Class Defined in System namespace, it is the base class to all arrays, and provides various properties and methods for working with arrays.

Comments

Post a Comment