3 ms·
As a .NET developer I always pay attention to passing by value vs passing by reference.
by DeathArrow 3y ago
As a .NET developer I always pay attention to passing by value vs passing by reference.
- sebazzz 3y agoThere is extra complexity there depending on the call path. Given the premise of the article, you shouldn’t pass structs larger than two object references, or larger dan a Int64 (long). You already get to that point quickly. But in .NET there are also things like allocations to worry about.