What Is Faster In C#: A Struct Or A Class?

Mark Farragher
4 min readMar 15, 2019

In this article I’ll take a look at structs and classes in C#.

Understanding the performance difference between these two will help you pick the correct code for every occasion.

Check out my code:

--

--