Man
Man
CC#
Created by Man on 11/30/2023 in #help
Expressing intent that method parameters are immutable for reference type arguments
If I want to express intent that a reference type argument is passed into a function, but isn't mutated, may I do so with in keyword, or should I use ref readonly, or is this entirely innapropriate (has performance downsides)? I do know that I also still need to do the hard work of making sure that the class's members are readonly too, if I want "true immutability".
1 replies
CC#
Created by Man on 11/9/2023 in #help
❔ `<code>` xml docs not showing nicely in VSCode
No description
14 replies