Skip to Content
Microsoft® Visual C#® .NET 2003 Kick Start
book

Microsoft® Visual C#® .NET 2003 Kick Start

by Steven Holzner
June 2003
Intermediate to advanced
624 pages
12h 41m
English
Sams
Content preview from Microsoft® Visual C#® .NET 2003 Kick Start

Using Arrays

We're already familiar with arrays; they're those indexed collections of objects that must be the same type. Arrays are based on the System.Array class, but you don't use this class directly to create arrays (System.Array is an abstract class); as we've seen, you use C# language syntax like this to create an array:

int[] intArray = new int[4] {1, 2, 3, 4};

We have already discussed the fundamentals of handling arrays—they're zero-based collections that are reference types. We've seen the default value of array elements in Chapter 3, “C# Object-Oriented Programming,” (Table 3.2). However, we haven't learned about the power that the Array class, which arrays are based on, gives us. You can find the significant public properties of ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Microsoft® .NET Kick Start

Microsoft® .NET Kick Start

Hitesh Seth

Publisher Resources

ISBN: 0672325470Purchase book