예제 #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;
 }
예제 #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 });
 }
예제 #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();
 }
예제 #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();
 }
예제 #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);
 }
예제 #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;
 }
예제 #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;
 }