Basic Collections
The .NET Framework includes classes that compare to some of the core collections found in Java, but the overall support and flexibility fall short. This section covers the basic .NET collections, which are similar to their Java equivalents. We begin with coverage of arrays; .NET introduces some clever changes that allow arrays to be treated like collections.
Arrays
The most fundamental type of collection is the array. The use of arrays in .NET is similar to that in Java, with one significant enhancement: all arrays derive from the System.Array class. By deriving all arrays from the System.Array class, .NET provides useful functionality for array creation and manipulation. Although Java arrays are technically classed as objects, ...
Get C# for Java Developers now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.