// Token: 0x0600004D RID: 77 RVA: 0x000041F8 File Offset: 0x000023F8 public TypeBinder(Type[] expectedTypes, Type[] baseClasses, Type[] genericTypes, TypedSerializationFormatter.TypeEncounteredDelegate typeEncountered, bool strict) { if (baseClasses != null && baseClasses.Length > 0) { this.baseClassSet = baseClasses; } if (genericTypes != null && genericTypes.Length > 0) { this.genericTypeSet = new HashSet <Type>(); foreach (Type type in genericTypes) { if (type.IsGenericTypeDefinition && !this.genericTypeSet.Contains(type)) { this.genericTypeSet.Add(type); } } } this.expected = TypedSerializationFormatter.TypeBinder.GenerateExpected(expectedTypes); this.typeEncounteredCallback = typeEncountered; this.strict = strict; }
// Token: 0x0600004C RID: 76 RVA: 0x000041E7 File Offset: 0x000023E7 public TypeBinder(Type[] expectedTypes, Type[] baseClasses, TypedSerializationFormatter.TypeEncounteredDelegate typeEncountered, bool strict) : this(expectedTypes, baseClasses, null, typeEncountered, strict) { }
// Token: 0x0600004B RID: 75 RVA: 0x000041BE File Offset: 0x000023BE public TypeBinder(Type[] expectedTypes, TypedSerializationFormatter.TypeEncounteredDelegate typeEncountered, bool strict) { this.expected = TypedSerializationFormatter.TypeBinder.GenerateExpected(expectedTypes); this.typeEncounteredCallback = typeEncountered; this.strict = strict; }
// Token: 0x0600004A RID: 74 RVA: 0x000041A1 File Offset: 0x000023A1 public TypeBinder(Dictionary <Type, string> expectedTypes, TypedSerializationFormatter.TypeEncounteredDelegate typeEncountered) { this.expected = expectedTypes; this.typeEncounteredCallback = typeEncountered; }
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, Type[] expectedTypes, Type[] baseClasses, TypedSerializationFormatter.TypeEncounteredDelegate typeEncountered, bool strict) { return(TypedSoapFormatter.Deserialize(serializationStream, new TypedSerializationFormatter.TypeBinder(expectedTypes, baseClasses, typeEncountered, strict))); }