コード例 #1
0
 /// <summary>
 /// Create value
 /// </summary>
 /// <param name="token"></param>
 /// <param name="serializer"></param>
 internal JsonVariantValue(JToken token, NewtonSoftJsonSerializer serializer)
 {
     _serializer = serializer;
     Token       = token ?? JValue.CreateNull();
 }
コード例 #2
0
 /// <summary>
 /// Converter
 /// </summary>
 /// <param name="serializer"></param>
 public JsonVariantConverter(NewtonSoftJsonSerializer serializer)
 {
     _serializer = serializer;
 }
コード例 #3
0
 /// <summary>
 /// Create value
 /// </summary>
 /// <param name="o"></param>
 /// <param name="serializer"></param>
 internal JsonVariantValue(NewtonSoftJsonSerializer serializer, object o)
 {
     _serializer = serializer;
     Token       = o == null?JValue.CreateNull() : FromObject(o);
 }