|This rule is Obsolete|
|Synopsis:||Use a |
struct when value semantics are desired
More precisely, a
struct should be considered for types that meet any of the following criteria:
- Act like primitive types.
- Have an instance size under ±16 bytes.
- Are immutable.
- Value semantics are desirable.
Remember that a
struct cannot be derived from.