Improve documention to mention non-JSON strings for string values

This commit is contained in:
James Newton-King
2019-09-01 16:21:36 +12:00
parent 2ec997d3a7
commit c5f2103470
2 changed files with 8 additions and 0 deletions
+4
View File
@@ -420,6 +420,10 @@ namespace Newtonsoft.Json.Linq
/// <summary> /// <summary>
/// Returns the indented JSON for this token. /// Returns the indented JSON for this token.
/// </summary> /// </summary>
/// <remarks>
/// <c>ToString()</c> returns a non-JSON string value for tokens with a type of <see cref="JTokenType.String"/>.
/// If you want the JSON for all token types then you should use <see cref="WriteTo(JsonWriter, JsonConverter[])"/>.
/// </remarks>
/// <returns> /// <returns>
/// The indented JSON for this token. /// The indented JSON for this token.
/// </returns> /// </returns>
+4
View File
@@ -887,6 +887,10 @@ namespace Newtonsoft.Json.Linq
/// <summary> /// <summary>
/// Returns a <see cref="String"/> that represents this instance. /// Returns a <see cref="String"/> that represents this instance.
/// </summary> /// </summary>
/// <remarks>
/// <c>ToString()</c> returns a non-JSON string value for tokens with a type of <see cref="JTokenType.String"/>.
/// If you want the JSON for all token types then you should use <see cref="WriteTo(JsonWriter, JsonConverter[])"/>.
/// </remarks>
/// <returns> /// <returns>
/// A <see cref="String"/> that represents this instance. /// A <see cref="String"/> that represents this instance.
/// </returns> /// </returns>