/// <summary> /// Create value /// </summary> /// <param name="token"></param> /// <param name="serializer"></param> internal JsonVariantValue(JToken token, NewtonSoftJsonSerializer serializer) { _serializer = serializer; Token = token ?? JValue.CreateNull(); }
/// <summary> /// Converter /// </summary> /// <param name="serializer"></param> public JsonVariantConverter(NewtonSoftJsonSerializer serializer) { _serializer = serializer; }
/// <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); }