Current .Net Version: 2.0.50727
Home
Articles
C# & .Net Framework Reference
Practice C# Online
XML Web Services
RSS Feeds
Code Snippets
T-SQL Scripts
Videos
Valuable Links
Contact Us
Mike's C#, VS.NET and SQL Blog




ROR XML Info.
C# & .Net Framework Reference
Arrays as Objects (C#)

Full Name:
Arrays as Objects (C#)

Short Name:
Arrays as Objects (C#)

Type of Entity:
C#

Abstract:
In C#, arrays are actually objects, and not just addressable regions of contiguous memory as in C and C++. Array is the abstract base type of all array types. You can use the properties, and other class members, that Array has. An example of this would be using the Length property to get the length of an array. The following code assigns the length of the numbers array, which is 5, to a variable called lengthOfNumbers:

MSDN Source URL:
http://msdn2.microsoft.com/2z4khca9.aspx

 
COPYRIGHT/DISCLAIMER | CONTACT US