2007-04-15 Alp Toker <alp@atoker.com>
authorAlp Toker <alp@mono-cvs.ximian.com>
Sun, 15 Apr 2007 04:11:07 +0000 (04:11 -0000)
committerAlp Toker <alp@mono-cvs.ximian.com>
Sun, 15 Apr 2007 04:11:07 +0000 (04:11 -0000)
* ConstructorBuilder.cs: Make use of
ConstructorInfo.TypeConstructorName/ConstructorName.

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

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

index 3e7235c438b7f218f6cdee2c7de5667a3af5553e..dea9430a2e96a199cb07bc6a30d23e67a17397a0 100644 (file)
@@ -1,3 +1,8 @@
+2007-04-15  Alp Toker  <alp@atoker.com>
+
+       * ConstructorBuilder.cs: Make use of
+       ConstructorInfo.TypeConstructorName/ConstructorName.
+
 2007-04-09  Alp Toker  <alp@atoker.com>
 
        * ConstructorBuilder.cs: Remove redundant overrides.
index 7f6545443ce7e27a04aa934ae204b60777b7d030..fc9b759287fdc77a56f8ca0cbe0b259e2a083c80 100644 (file)
@@ -131,7 +131,7 @@ namespace System.Reflection.Emit {
                public override Type DeclaringType { get {return type;}}
                public Type ReturnType { get {return null;}}
                public override string Name { 
-                       get {return (attrs & MethodAttributes.Static) != 0 ? ".cctor" : ".ctor";}
+                       get {return (attrs & MethodAttributes.Static) != 0 ? ConstructorInfo.TypeConstructorName : ConstructorInfo.ConstructorName;}
                }
                public string Signature {
                        get {return "constructor signature";}