The focus of this document is on providing a reference for writing C#. It includes naming, structural and formatting conventions as well as best practices for writing clean, safe and maintainable code. Many of the best practices and conventions apply equally well to other languages.
A struct record has mutable properties, whereas a record has immutable properties. A readonly struct record has immutable properties. Be aware that simply changing record to struct record will also change formerly immutable properties to mutable ones.
Notes
A
struct record
has mutable properties, whereas arecord
has immutable properties. Areadonly struct record
has immutable properties. Be aware that simply changingrecord
tostruct record
will also change formerly immutable properties to mutable ones.