namespace System.Runtime.Serialization
{
+ [System.Runtime.InteropServices.ComVisibleAttribute (true)]
public sealed class SerializationInfo
{
Hashtable serialized = new Hashtable ();
SerializationEntry entry = (SerializationEntry) serialized [name];
- if (entry.Value != null && !type.IsAssignableFrom (entry.Value.GetType()))
+ if (entry.Value != null && !type.IsInstanceOfType (entry.Value))
return converter.Convert (entry.Value, type);
else
return entry.Value;
}
+ internal bool HasKey (string name)
+ {
+ return serialized [name] != null;
+ }
+
public void SetType (Type type)
{
if (type == null)
}
/* used by the runtime */
+#pragma warning disable 169
private SerializationEntry [] get_entries ()
{
SerializationEntry [] res = new SerializationEntry [this.MemberCount];
return res;
}
+#pragma warning restore 169
}
}