2003-03-27 Zoltan Varga <vargaz@freemail.hu>
authorZoltan Varga <vargaz@gmail.com>
Thu, 27 Mar 2003 16:30:49 +0000 (16:30 -0000)
committerZoltan Varga <vargaz@gmail.com>
Thu, 27 Mar 2003 16:30:49 +0000 (16:30 -0000)
* AssemblyBuilder.cs: Added 'access' member, which is needed by the
runtime.

svn path=/trunk/mcs/; revision=12864

mcs/class/corlib/System.Reflection.Emit/AssemblyBuilder.cs
mcs/class/corlib/System.Reflection.Emit/ChangeLog

index ec0b37a43fbdcd78aaf03143dbe9afbbeb730ff5..c693b2dd8f99b95ff435e6cae72a75dcd2014054 100755 (executable)
@@ -41,6 +41,7 @@ namespace System.Reflection.Emit {
                uint flags;
                PEFileKinds pekind = PEFileKinds.Dll;
                bool delay_sign;
+               uint access;
                internal Type corlib_object_type = typeof (System.Object);
                internal Type corlib_value_type = typeof (System.ValueType);
                internal Type corlib_enum_type = typeof (System.Enum);
@@ -53,6 +54,7 @@ namespace System.Reflection.Emit {
                internal AssemblyBuilder (AssemblyName n, string directory, AssemblyBuilderAccess access) {
                        name = n.Name;
                        dir = directory;
+                       this.access = (uint)access;
                        basic_init (this);
                }
 
@@ -269,6 +271,12 @@ namespace System.Reflection.Emit {
                        return getToken (this, helper);
                }
 
+               internal bool IsSave {
+                       get {
+                               return access != (uint)AssemblyBuilderAccess.Run;
+                       }
+               }
+
                [MethodImplAttribute(MethodImplOptions.InternalCall)]
                private static extern int getDataChunk (AssemblyBuilder ab, byte[] buf, int offset);
 
index e6ab20dd10157333c5f923b7d6a3b3a27703101f..3d3b4b8d0df74e608d6edc81782184bebe228bf1 100644 (file)
@@ -1,3 +1,8 @@
+2003-03-27  Zoltan Varga  <vargaz@freemail.hu>
+
+       * AssemblyBuilder.cs: Added 'access' member, which is needed by the
+       runtime.
+
 2003-03-26  Zoltan Varga  <vargaz@freemail.hu>
 
        * ILGenerator.cs: Implemented ThrowException.