/// <summary> /// Write a string value. /// </summary> /// <param name="value">String value to be written.</param> public void WriteValue(string value) { this.WriteValueSeparator(); JsonValueUtils.WriteValue(this.writer, value, this.stringEscapeOption, ref this.buffer); }
/// <summary> /// Write a short value. /// </summary> /// <param name="value">Short value to be written.</param> public void WriteValue(short value) { this.WriteValueSeparator(); JsonValueUtils.WriteValue(this.writer, value); }
/// <summary> /// Write a Date value /// </summary> /// <param name="value">Date value to be written.</param> public void WriteValue(TimeOfDay value) { this.WriteValueSeparator(); JsonValueUtils.WriteValue(this.writer, value); }
/// <summary> /// Writes a DateTimeOffset value /// </summary> /// <param name="value">DateTimeOffset value to be written.</param> public void WriteValue(DateTimeOffset value) { this.WriteValueSeparator(); JsonValueUtils.WriteValue(this.writer, value, ODataJsonDateTimeFormat.ISO8601DateTime); }
/// <summary> /// Write a byte array. /// </summary> /// <param name="value">Byte array to be written.</param> public void WriteValue(byte[] value) { this.WriteValueSeparator(); JsonValueUtils.WriteValue(this.writer, value, ref this.buffer, ArrayPool); }
/// <summary> /// Write a byte array. /// </summary> /// <param name="value">Byte array to be written.</param> public void WriteValue(byte[] value) { this.WriteValueSeparator(); JsonValueUtils.WriteValue(this.writer, value, this.wrappedBuffer, this.ArrayPool); }
/// <summary> /// Write a string value. /// </summary> /// <param name="value">String value to be written.</param> public void WriteValue(string value) { this.WriteValueSeparator(); JsonValueUtils.WriteValue(this.writer, value, this.stringEscapeOption, this.wrappedBuffer, this.ArrayPool); }