Showing results for ErrorProne.NET - Developer Support

May 3, 2018
Post comments count0
Post likes count3

Avoiding struct and readonly reference performance pitfalls with ErrorProne.NET

Sergey Tepliakov
Sergey Tepliakov

As you may know from my previous posts "The 'in'-modifier and the readonly structs in C#" and "Performance traps of ref locals and ref returns in C#", structs are trickier then you might think. Mutability aside, the behavior of readonly and non-readonly structs in "readonly" contexts is very different. Structs are meant for high-performance scen...

seteplia