Jakub Chodounsky
May 7, 2017 · 1 min read

As I understood it was referring to extension methods with structs.

Any struct passed to the extension method is by value (copied) — therefore any modification from extension method would be lost and there is an overhead with the copying of the object.

To solve this there is an open PR for championing “by ref” extensions and a discussion that was related to it.

    Jakub Chodounsky

    Written by

    I help you keep up to date with C# Digest weekly newsletter at https://csharpdigest.net.