Arrays

Now that we’ve covered the built-in types in quite some detail and know from a few examples it’s possible to define our own types, we can delve a bit deeper. What about types of types? This might sound a bit “meta” at first, but the concept is very usable nevertheless. One such construct that allows the creation of types out of existing ones is called arrays.

Note: A Theoretical Undertone

Most books don’t introduce arrays this way, but I believe it helps to think of such crucial concepts in a more structured manner. In particular, what we’re talking about in this context are type constructors. Don’t confuse this with instance constructors or static constructors, which both are proper C# language terms. Type constructors are a theoretical ...

Get C# 5.0 Unleashed 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.