Exemplo n.º 1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="FastJsonDeserializer" /> class.
 /// </summary>
 /// <param name="data">The data.</param>
 public FastJsonSerializer(TestObject data)
 {
     this.Data = data;
 }
Exemplo n.º 2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="JsonNetDeserializer"/> class.
 /// </summary>
 /// <param name="data">The data.</param>
 public JsonNetDeserializer(TestObject data)
 {
     this.Data = JsonConvert.SerializeObject(data, typeof(TestObject), new JsonSerializerSettings() { DateFormatHandling = DateFormatHandling.IsoDateFormat });
 }
Exemplo n.º 3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="JsonFxDeserializer" /> class.
 /// </summary>
 /// <param name="data">The data.</param>
 public JsonFxSerializer(TestObject data)
 {
     this.Data = data;
     this.Writer = new JsonWriter();
 }
Exemplo n.º 4
0
 /// <summary>
 /// Initializes a new instance of the <see cref="JsonFxDeserializer"/> class.
 /// </summary>
 /// <param name="data">The data.</param>
 public JsonFxDeserializer(TestObject data)
 {
     this.Data = new JsonWriter().Write(data);
     this.Reader = new JsonReader();
 }
Exemplo n.º 5
0
 /// <summary>
 /// Initializes a new instance of the <see cref="JayRockDeserializer"/> class.
 /// </summary>
 /// <param name="data">The data.</param>
 public JayRockDeserializer(TestObject data)
 {
     this.Data = Jayrock.Json.Conversion.JsonConvert.ExportToString(data);
 }
Exemplo n.º 6
0
 /// <summary>
 /// Initializes a new instance of the <see cref="JsonNetSerializer" /> class.
 /// </summary>
 /// <param name="data">The data.</param>
 public JsonNetSerializer(TestObject data)
 {
     this.Data = data;
 }
Exemplo n.º 7
0
 /// <summary>
 /// Initializes a new instance of the <see cref="JayRockSerializer" /> class.
 /// </summary>
 /// <param name="data">The data.</param>
 public JayRockSerializer(TestObject data)
 {
     this.Data = data;
 }