/// <summary>
 /// Initializes a new instance of the <see cref="DataContractMessageSerializer"/> class.
 /// </summary>
 /// <param name="know">The know.</param>
 public DataContractMessageSerializer(IKnowSerializationTypes know) : this(know.GetKnownTypes().ToSet())
 {
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="DataContractMessageSerializer"/> class.
 /// </summary>
 /// <param name="know">The know.</param>
 public DataContractMessageSerializer(IKnowSerializationTypes know)
     : this(know.GetKnownTypes().ToSet())
 {
 }
 public ProtoBufMessageSerializer(IKnowSerializationTypes types)
     : this(types.GetKnownTypes().ToSet())
 {
 }
예제 #4
0
 public ProtoBufMessageSerializer(IKnowSerializationTypes types) : this(types.GetKnownTypes().ToSet())
 {
 }