|Structs in C#|
Structs in C# are value types. On this page we show two concrete programming examples of structs.
We show the structs Point and 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