New test.
[mono.git] / mcs / class / corlib / System.Reflection.Emit / UnmanagedMarshal.cs
old mode 100755 (executable)
new mode 100644 (file)
index 096fafc..d514505
@@ -37,6 +37,10 @@ using System;
 
 namespace System.Reflection.Emit {
 
+#if NET_2_0
+       [Obsolete ("An alternate API is available: Emit the MarshalAs custom attribute instead.")]
+       [ComVisible (true)]
+#endif
        [Serializable]
        public sealed class UnmanagedMarshal {
                private int count;
@@ -107,7 +111,7 @@ namespace System.Reflection.Emit {
                        res.marshaltype = mtype;
                        res.marshaltyperef = typeref;
                        if (id == Guid.Empty)
-                               res.guid = "";
+                               res.guid = String.Empty;
                        else
                                res.guid = id.ToString ();
                        return res;