New tests.
[mono.git] / mcs / class / corlib / System.Runtime.Serialization / SerializationInfo.cs
index b36c92dd17014c4a2cec73e05cca6c968ce1c02c..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)
@@ -342,6 +345,7 @@ namespace System.Runtime.Serialization
                }
 
                /* used by the runtime */
+#pragma warning disable 169            
                private SerializationEntry [] get_entries ()
                {
                        SerializationEntry [] res = new SerializationEntry [this.MemberCount];
@@ -352,5 +356,6 @@ namespace System.Runtime.Serialization
                        
                        return res;
                }
+#pragma warning restore 169            
        }
 }