public XmlSerialization( ITypeResolver typeResolver, GenericDataContractResolver genericResolver, GenericDeserializationBinder genericBinder) { Contract.Requires(typeResolver != null); Contract.Requires(genericResolver != null); Contract.Requires(genericBinder != null); this.TypeResolver = typeResolver; this.GenericResolver = genericResolver; this.GenericBinder = genericBinder; }
public XmlSerialization( ITypeResolver typeResolver, GenericDataContractResolver genericResolver, #if NETSTANDARD2_0 JsonSerialization json, #endif GenericDeserializationBinder genericBinder) { Contract.Requires(typeResolver != null); Contract.Requires(genericResolver != null); Contract.Requires(genericBinder != null); this.TypeResolver = typeResolver; this.GenericResolver = genericResolver; #if NETSTANDARD2_0 this.Json = json; #endif this.GenericBinder = genericBinder; }