i dont fully understand when is it more effective to use a struct and when is it more effective to use a class?
i read the explanation from Oriely's book "C# in a nutshell", but i still dont understand.
Because a struct is a value type, each instance doesnt require instantiation of an object on the heap, this incures a useful savings when creating many instances of a type.
For instance, creating an array of value type requires a single heap allocation.