11.7. Summary

Both C# and Java treat arrays as objects; arrays are allocated on the heap. In C# all arrays are of the type System.Array class. Like the java.util.Arrays class, the System.Array class has several static utility methods for manipulating arrays. C# arrays can be jagged, rectangular, one-dimensional, or multidimensional. In C#, arrays are also collections and implement the IList and ICollection interfaces.

Get .NET for Java Developers: Migrating to C# 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.