Exemple #1
0
 /// <summary>
 /// Serializing of a primitive type
 /// </summary>
 /// <param name="value">The value.</param>
 /// <param name="callBack">The call back.</param>
 public void Serialize(bool?value, IValueSerializationTarget callBack)
 {
     callBack.Set(value);
 }
Exemple #2
0
 /// <summary>
 /// Serializing of a primitive type
 /// </summary>
 /// <param name="value">The value.</param>
 /// <param name="callBack">The call back.</param>
 public void Serialize(DateTime?value, IValueSerializationTarget callBack)
 {
     callBack.Set(value);
 }
 /// <summary>
 /// Serializing of a primitive type
 /// </summary>
 /// <param name="value">The value.</param>
 /// <param name="callBack">The call back.</param>
 public void Serialize(object value, IValueSerializationTarget callBack)
 {
     callBack.Set(ToJson(value), value.GetType());
 }