Two a day keeps stagnation away
The differences between classes and structs in C#

The differences between classes and structs in C#

I’ve been using C# for a long time but I never quite understood the differences between classes and structs. I decided to do a deep dive and ended up learning a lot more than I expected. The differences have a lot to do with how the memory is allocated, stored and managed. There are some subtle performance differences, but it would be a stretch to say that structs are always noticeably faster.

Read more: https://youtu.be/uFHtFOmH2OI

Leave a Reply

Your email address will not be published. Required fields are marked *