/// <summary> /// Converts the <see cref="String"/> to its JSON string representation. /// </summary> /// <param name="value">The value to convert.</param> /// <param name="delimter">The string delimiter character.</param> /// <returns>A JSON string representation of the <see cref="String"/>.</returns> public static string ToString(string value, char delimter) { return(JavaScriptUtils.ToEscapedJavaScriptString(value, delimter, true)); }
private void WriteEscapedString(string value, bool quote) { EnsureWriteBuffer(); JavaScriptUtils.WriteEscapedJavaScriptString(_writer, value, _quoteChar, quote, _charEscapeFlags, StringEscapeHandling, _arrayPool, ref _writeBuffer); }
private void UpdateCharEscapeFlags() { _charEscapeFlags = JavaScriptUtils.GetCharEscapeFlags(StringEscapeHandling, _quoteChar); }
public override void WritePropertyName(string name) { base.WritePropertyName(name); JavaScriptUtils.WriteEscapedJavaScriptString(this._writer, name, this._quoteChar, this._quoteName); this._writer.Write(':'); }
private void WriteEscapedString(string value, bool quote) { this.EnsureWriteBuffer(); JavaScriptUtils.WriteEscapedJavaScriptString(this._writer, value, this._quoteChar, quote, this._charEscapeFlags, base.StringEscapeHandling, this._arrayPool, ref this._writeBuffer); }
// Token: 0x06000D3D RID: 3389 RVA: 0x0001000E File Offset: 0x0000E20E private void UpdateCharEscapeFlags() { this._charEscapeFlags = JavaScriptUtils.GetCharEscapeFlags(base.StringEscapeHandling, this._quoteChar); }