When to use a class or struct in C#?

Structs are value types that contain small groups of variables related to each other. An example of a struct could be characteristics of an inventory item or x-y coordinates and a point. In C#, the int, double, bool, and char types are all structs. An example of a struct: \\ struct…