[mcs] Implements C# 7.2 readonly structs
[mono.git] / mcs / mcs / typespec.cs
index 0585dfd667a08d6d7f56cf247831eb915fbb7d49..d14e1ead3e317c07b55873ca2e679a7d6d3205a9 100644 (file)
@@ -237,6 +237,8 @@ namespace Mono.CSharp
                        }
                }
 
+               public bool IsReadOnly => (modifiers & Modifiers.READONLY) != 0;
+
                //
                // Returns true for instances of any System.ValueTuple<......> type
                //