Get Your Bits Together

Best Practices for Structs in C#

Structs in C# are value types and thus are meant for holding data structures that are usually immutable. If you're going to write a struct, consider the following practices.

Get Your Bits Together © 2026