/// <summary>
 /// Initializes a new instance of the <see cref="IonDictionarySerializer"/> class.
 /// </summary>
 ///
 /// <param name="ionSerializer">
 /// The Ion serializer to use for serializing and deserializing the values of the IDictionary.
 /// </param>
 /// <param name="valueType">The type of values in the IDictionary.</param>
 public IonDictionarySerializer(IonSerializer ionSerializer, Type valueType)
 {
     this.serializer = ionSerializer;
     this.valueType  = valueType;
 }
예제 #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="IonObjectSerializer"/> class.
 /// </summary>
 ///
 /// <param name="ionSerializer">Serializer to be used for serializing/deserializing non-primitive objects.</param>
 /// <param name="options">Serialization options for customizing serializer behavior.</param>
 /// <param name="targetType">The type of data being serialized/deserialized.</param>
 public IonObjectSerializer(IonSerializer ionSerializer, IonSerializationOptions options, Type targetType)
 {
     this.ionSerializer = ionSerializer;
     this.options       = options;
     this.targetType    = targetType;
 }
예제 #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="IonListSerializer"/> class.
 /// </summary>
 ///
 /// <param name="serializer">Serializer to be used for serializing/deserializing items in list.</param>
 /// <param name="listType">Type of list.</param>
 public IonListSerializer(IonSerializer serializer, Type listType)
 {
     this.serializer = serializer;
     this.listType   = listType;
 }