Add documentation and split JSON Path into its own documentation section (#1925)

This commit is contained in:
James Newton-King
2018-11-26 23:10:30 +13:00
committed by GitHub
parent f869558de5
commit 2171a88e5e
21 changed files with 377 additions and 26 deletions
+3 -1
View File
@@ -53,11 +53,12 @@ namespace Newtonsoft.Json
}
/// <summary>
/// Gets the string containing the same characters as the specified range of characters in the given array.
/// Gets a string containing the same characters as the specified range of characters in the given array.
/// </summary>
/// <param name="key">The character array containing the name to find.</param>
/// <param name="start">The zero-based index into the array specifying the first character of the name.</param>
/// <param name="length">The number of characters in the name.</param>
/// <returns>A string containing the same characters as the specified range of characters in the given array.</returns>
public override string Get(char[] key, int start, int length)
{
if (length == 0)
@@ -96,6 +97,7 @@ namespace Newtonsoft.Json
/// </summary>
/// <param name="key">The string to add.</param>
/// <remarks>This method is not thread-safe.</remarks>
/// <returns>The resolved string.</returns>
public string Add(string key)
{
if (key == null)
+2 -1
View File
@@ -6,11 +6,12 @@
public abstract class JsonNameTable
{
/// <summary>
/// Gets the string containing the same characters as the specified range of characters in the given array.
/// Gets a string containing the same characters as the specified range of characters in the given array.
/// </summary>
/// <param name="key">The character array containing the name to find.</param>
/// <param name="start">The zero-based index into the array specifying the first character of the name.</param>
/// <param name="length">The number of characters in the name.</param>
/// <returns>A string containing the same characters as the specified range of characters in the given array.</returns>
public abstract string Get(char[] key, int start, int length);
}
}