How to Become a C# Programmer: Step By Step Beginner's To Experts Edition by Harry

How to Become a C# Programmer: Step By Step Beginner's To Experts Edition by Harry

Author:Harry
Language: eng
Format: mobi
Publisher: Programmers Mind Inc,
Published: 2014-12-01T18:30:00+00:00


Using .NET Properties and Methods with Arrays-

As mentioned earlier, arrays are inherited from the class System.Array, which contains several methods and properties for manipulating arrays. In the following sections, some of these properties and methods are introduced.

Array’s Length (Length)

The Length property is the number of elements in an array. Consider the following array:

int[,] myArray= new int[10,4]; // Array declaration

The following statement displays the number 40, which represents the number of elements:



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.