Compiler – Support for ReadOnlyReferences
class Type1 { // This parameter will have an attribute (in IL) of type `IsReadOnly` public void Method1(ref readonly int param1) { throw null; } // This method return type will have an attribute (in IL) of type `IsReadOnly` public ref readonly int Method2() { throw null; } }