Author: jbevain
Date: 2007-06-13 12:50:34 -0400 (Wed, 13 Jun 2007)
New Revision: 79449

Modified:
   trunk/cecil/lib/ChangeLog
   trunk/cecil/lib/Mono.Cecil.Signatures/SignatureWriter.cs
Log:
2007-06-13  Jb Evain  <[EMAIL PROTECTED]>

        Integrated patches by:
        Paul Apostolescu <[EMAIL PROTECTED]>

        * patch2:
          Mono.Cecil.Signature/SignatureWriter.cs:
                Patch to handle nullref values for types in
                custom attributes arguments.


Modified: trunk/cecil/lib/ChangeLog
===================================================================
--- trunk/cecil/lib/ChangeLog   2007-06-13 16:40:15 UTC (rev 79448)
+++ trunk/cecil/lib/ChangeLog   2007-06-13 16:50:34 UTC (rev 79449)
@@ -1,5 +1,15 @@
-2007-06-12  Jb Evain  <[EMAIL PROTECTED]>
+2007-06-13  Jb Evain  <[EMAIL PROTECTED]>
 
+       Integrated patches by:
+       Paul Apostolescu <[EMAIL PROTECTED]>
+
+       * patch2:
+         Mono.Cecil.Signature/SignatureWriter.cs:
+               Patch to handle nullref values for types in
+               custom attributes arguments.
+
+2007-06-13  Jb Evain  <[EMAIL PROTECTED]>
+
        * Mono.Cecil/StructureWriter.cs,
          Mono.Cecil/ReflectionWriter.cs:
                Revert the on demand creation of memberref.

Modified: trunk/cecil/lib/Mono.Cecil.Signatures/SignatureWriter.cs
===================================================================
--- trunk/cecil/lib/Mono.Cecil.Signatures/SignatureWriter.cs    2007-06-13 
16:40:15 UTC (rev 79448)
+++ trunk/cecil/lib/Mono.Cecil.Signatures/SignatureWriter.cs    2007-06-13 
16:50:34 UTC (rev 79449)
@@ -465,6 +465,7 @@
                                writer.Write ((long) elem.Value);
                                break;
                        case ElementType.String :
+                       case ElementType.Type :
                                string s = elem.Value as string;
                                if (s == null)
                                        writer.Write ((byte) 0xff);
@@ -473,12 +474,6 @@
                                else
                                        Write (s);
                                break;
-                       case ElementType.Type :
-                               string t = elem.Value as string;
-                               if (t == null || t.Length == 0)
-                                       throw new NotSupportedException ("Null 
types not allowed in custom attributes");
-                               Write (t);
-                               break;
                        case ElementType.Object :
                                if (elem.Value != null)
                                        throw new NotSupportedException 
("Unknown state");

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to