Closed ghost closed 3 years ago
Structs perform well for instance sizes less than 16 bytes, instance sizes larger than 16 bytes should be a class object. Structs are designed for representing lightweight objects such as points, coords, and colors.
https://docs.microsoft.com/en-us/dotnet/standard/design-guidelines/choosing-between-class-and-struct
Structs perform well for instance sizes less than 16 bytes, instance sizes larger than 16 bytes should be a class object. Structs are designed for representing lightweight objects such as points, coords, and colors.
https://docs.microsoft.com/en-us/dotnet/standard/design-guidelines/choosing-between-class-and-struct