Reference types, Value types, and Patterns - slide 10 : 29
Structs in C#
We show the structs Point and Card
Struct Point.
Struct Card.
A client of struct Card.
Structs are typically used for aggregation and encapsulation of a
few values, which we want to treat as a value itself, and for which we wish to apply value semantics
In the System namespace, the types DateTime and TimeSpan are programmed as structs