[mcs] Implements C# 7.2 readonly structs
[mono.git] / mcs / mcs / attribute.cs
index ca142609003dc480033ea2ae6be3e5182266453d..3ff2d68ccb5ad38964c23c0890f4372c9a4406ef 100644 (file)
@@ -1755,6 +1755,9 @@ namespace Mono.CSharp {
                // New in .NET 4.7
                public readonly PredefinedTupleElementNamesAttribute TupleElementNames;
 
+               // New in .NET 4.7.1
+               public readonly PredefinedAttribute IsReadOnly;
+
                //
                // Optional types which are used as types and for member lookup
                //
@@ -1835,6 +1838,7 @@ namespace Mono.CSharp {
                        CallerFilePathAttribute = new PredefinedAttribute (module, "System.Runtime.CompilerServices", "CallerFilePathAttribute");
 
                        TupleElementNames = new PredefinedTupleElementNamesAttribute (module, "System.Runtime.CompilerServices", "TupleElementNamesAttribute");
+                       IsReadOnly = new PredefinedAttribute (module, "System.Runtime.CompilerServices", "IsReadOnlyAttribute");
 
                        // TODO: Should define only attributes which are used for comparison
                        const System.Reflection.BindingFlags all_fields = System.Reflection.BindingFlags.Public |