public static object DeserializeObject(Stream serializationStream, Dictionary <Type, string> expectedTypes, TypedSerializationFormatter.TypeEncounteredDelegate typeEncountered)
 {
     if (expectedTypes == null || expectedTypes.Count == 0)
     {
         throw new ArgumentException("expectedTypes", "ExpectedTypes must be initialized before use");
     }
     return(TypedSoapFormatter.Deserialize(serializationStream, new TypedSerializationFormatter.TypeBinder(expectedTypes, typeEncountered)));
 }
 public static object DeserializeObject(Stream serializationStream, TypedSerializationFormatter.TypeBinder binder)
 {
     if (!binder.IsInitialized)
     {
         throw new ArgumentException("binder", "Binder must be initialized before use");
     }
     return(TypedSoapFormatter.Deserialize(serializationStream, binder));
 }
 public static object DeserializeObject(Stream serializationStream, Type[] expectedTypes, Type[] baseClasses, TypedSerializationFormatter.TypeEncounteredDelegate typeEncountered, bool strict)
 {
     return(TypedSoapFormatter.Deserialize(serializationStream, new TypedSerializationFormatter.TypeBinder(expectedTypes, baseClasses, typeEncountered, strict)));
 }