Summary

Arrays are reference types. An array serves as a container of list of references to the data stored in the memory. This list of references comprises the elements or members of an array. Each element of an array has an index number through which it can be accessed. Arrays can be single dimensional, multidimensional, or jagged.

Structs are value types. A struct serves as a container object for different kinds of member data such as constructors, constants, fields, methods, properties, indexers, operators, and nested types. Structs do not support inheritance.

The enum type consists of named constants. It is a value type that has an underlying integral type. Each member of an enum has a constant value associated with it. The enum type is ...

Get Special Edition Using 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.