roslynator
roslynator copied to clipboard
RCS1231 can cause perf implications and should probably be avoided in most scenarios when the struct is small
I wouldn't enable this rule, at least not unless all the readonly struct
s are massive. It seems like the intent is to avoid costs associated with copying of structs, but passing by reference then means that all accesses are indirections, which has its own costs.