Code Analysis ReferenceAnalyzersRCS1242On this pageRCS1242: Do not pass non-read-only struct by read-only referencePropertiesPropertyValueDefault SeverityWarningMinimum language version7.2ExamplesExample #1diagnostic.csstruct C{ void M(in C c) { }}fix.csstruct C{ void M(C c) { }}Applies toExtension for VS 2022Extension for VS CodeExtension for Open VSXPackage Roslynator.Analyzers