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 ...
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.
Read now
Unlock full access