Bring jbevain/cecil's commit a2c944bd45b81443fd61cfd27d98ff551fa6938c, Add enum value...
authorMiguel de Icaza <miguel@gnome.org>
Wed, 18 Apr 2012 22:49:40 +0000 (18:49 -0400)
committerMiguel de Icaza <miguel@gnome.org>
Wed, 18 Apr 2012 22:54:19 +0000 (18:54 -0400)
mcs/class/Mono.Cecil/Mono.Cecil/AssemblyFlags.cs
mcs/class/Mono.Cecil/Mono.Cecil/AssemblyNameReference.cs
mcs/class/Mono.Cecil/Mono.Cecil/TypeAttributes.cs
mcs/class/Mono.Cecil/Mono.Cecil/TypeDefinition.cs

index e466e784410959a704e48f72d7609b5e328cc9d5..72a0eb06c2007c894f1ccde20529337a2cf42b92 100644 (file)
@@ -35,6 +35,7 @@ namespace Mono.Cecil {
                PublicKey                                               = 0x0001,
                SideBySideCompatible                    = 0x0000,
                Retargetable                                    = 0x0100,
+               WindowsRuntime                                  = 0x0200,
                DisableJITCompileOptimizer              = 0x4000,
                EnableJITCompileTracking                = 0x8000,
        }
index 31b7a30b3ac43a6325e910dbfa0911cf4f42ede2..3da978057b441f302b8804f04a553f1452b3051c 100644 (file)
@@ -92,6 +92,11 @@ namespace Mono.Cecil {
                        set { attributes = attributes.SetAttributes ((uint) AssemblyAttributes.Retargetable, value); }
                }
 
+               public bool IsWindowsRuntime {
+                       get { return attributes.GetAttributes ((uint) AssemblyAttributes.WindowsRuntime); }
+                       set { attributes = attributes.SetAttributes ((uint) AssemblyAttributes.WindowsRuntime, value); }
+               }
+
                public byte [] PublicKey {
                        get { return public_key; }
                        set {
index bc4e18f33620da20c42104015a54601446c8fe10..86fbc4dba5edaf6f760f38740d437c006802a81e 100644 (file)
@@ -62,6 +62,7 @@ namespace Mono.Cecil {
                // Implementation attributes
                Import                          = 0x00001000,   // Class/Interface is imported
                Serializable            = 0x00002000,   // Class is serializable
+               WindowsRuntime          = 0x00004000,   // Windows Runtime type
 
                // String formatting attributes
                StringFormatMask        = 0x00030000,   // Use this mask to retrieve string information for native interop
index f9a12d1f82cad97e283f9306bc13a4a276950806..4079406d4054087f9004bbecf9d143d5201db1dc 100644 (file)
@@ -388,6 +388,11 @@ namespace Mono.Cecil {
                        set { attributes = attributes.SetAttributes ((uint) TypeAttributes.Serializable, value); }
                }
 
+               public bool IsWindowsRuntime {
+                       get { return attributes.GetAttributes ((uint) TypeAttributes.WindowsRuntime); }
+                       set { attributes = attributes.SetAttributes ((uint) TypeAttributes.WindowsRuntime, value); }
+               }
+
                public bool IsAnsiClass {
                        get { return attributes.GetMaskedAttributes ((uint) TypeAttributes.StringFormatMask, (uint) TypeAttributes.AnsiClass); }
                        set { attributes = attributes.SetMaskedAttributes ((uint) TypeAttributes.StringFormatMask, (uint) TypeAttributes.AnsiClass, value); }