Describe how to create and use array in .NET - DOT.NET

Describe how to create and use array in .NET.

Arrays treat several items as a single collection.

Following are the ways to create arrays:

Declaring a reference to an array
Int32[] a;

Create array of ten Int32elements
b = new Int32[10];

Creating a 2-dimensional array
Double[,] c = new Double[10, 20];

Creating a 3-dimensional array
String[,,] d = new String[5, 3, 10];
Define Constants and Enumerations in .NET - DOT.NET
Constants are values which are known at compile time and do not change.....
Collection in .NET - enumerate through the members of a collection - DOT.NET
There are various collection types in .NET which are used for manipulation of data. Collections are available in System.Collections namespace.....
Similarities and differences between arrays and collections - DOT.NET
The Array class is not part of the System.Collections namespaces. But an array is a collection, as it is based on the IList interface......
Post your comment