First, let’s review what a struct is. The struct (short for structure) is just that. That is, structs are data structures composed of several pieces of data, possibly of different types. They enable you to define your own types of variables based on this structure.
A struct is a value type, whereas a class is a reference type. Because a struct is a value type, each instance does not require instantiation of an object on the heap. This is more efficient when you’re creating many instances of a type. A struct does not support inheritance (other than implicitly deriving from object, or more precisely, System.ValueType).
Below in the code there is an example of a struct called Customer. Here we are using a lambda expression.