예제 #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="BinarySerializer" /> class.
 /// </summary>
 /// <param name="serializationManager">The serialization manager.</param>
 /// <param name="typeFactory">The type factory.</param>
 /// <param name="objectAdapter">The object adapter.</param>
 /// <exception cref="ArgumentNullException">The <paramref name="serializationManager" /> is <c>null</c>.</exception>
 public BinarySerializer(ISerializationManager serializationManager, ITypeFactory typeFactory, IObjectAdapter objectAdapter)
     : base(serializationManager, typeFactory, objectAdapter)
 {
     if (DeserializationBinder is null)
     {
         DeserializationBinder = new RedirectDeserializationBinder();
     }
 }
예제 #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="BinarySerializer" /> class.
 /// </summary>
 /// <param name="serializationManager">The serialization manager.</param>
 /// <exception cref="ArgumentNullException">The <paramref name="serializationManager" /> is <c>null</c>.</exception>
 public BinarySerializer(ISerializationManager serializationManager)
     : base(serializationManager)
 {
     DeserializationBinder = new RedirectDeserializationBinder();
 }