New tests.
[mono.git] / mcs / class / corlib / System.Runtime.Serialization / SerializationInfo.cs
index 793328ab94355cf4d752455b39746940b2ff8081..2e92f1c7ca75504b839cd92f82164127a2a2cf01 100644 (file)
@@ -38,9 +38,7 @@ using System.Collections;
 
 namespace System.Runtime.Serialization
 {
-#if NET_2_0
        [System.Runtime.InteropServices.ComVisibleAttribute (true)]
-#endif
        public sealed class SerializationInfo
        {
                Hashtable serialized = new Hashtable ();
@@ -151,6 +149,11 @@ namespace System.Runtime.Serialization
                                return entry.Value;
                }
 
+               internal bool HasKey (string name)
+               {
+                       return serialized [name] != null;
+               }
+               
                public void SetType (Type type)
                {
                        if (type == null)