示例#1
0
 void IJsonMember.WriteTo(JsonTextWriter textWriter)
 {
     if (this.kind == JsonElement.Null)
     {
         textWriter.WriteNull();
     }
     else if (this.value is DateTime)
     {
         textWriter.WriteValue(Convert.ToDateTime(this.value, CultureInfo.InvariantCulture));
     }
     else
     {
         textWriter.WriteValue(this.value);
     }
 }
示例#2
0
 void IJsonMember.WriteTo(JsonTextWriter textWriter)
 {
     if (this.kind == JsonElement.Null)
     {
         textWriter.WriteNull();
     }
     else if (this.value is DateTime)
     {
         textWriter.WriteValue(Convert.ToDateTime(this.value, CultureInfo.InvariantCulture));
     }
     else
     {
         textWriter.WriteValue(this.value);
     }
 }