You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The idea behind these methods is that they should to call, meaning if you GetInt32(0) and the item isn't found, or the value cannot be converted to a 32-bit integer, the method should return a default value instead of throwing an exception. As this wasn't the case, the implementation has been updated to reflect this.
- added check for min and max values
- no longer tries to cast values
- added additional GetType and TryGetType extension methods
- added lots of unit tests
- etc.
/// Attempts to get the <see cref="bool"/> value of the item at the specified <paramref name="index"/> in the array.
85
+
/// </summary>
86
+
/// <param name="array">The parent array.</param>
87
+
/// <param name="index">The index of the item.</param>
88
+
/// <param name="result">When this method returns, holds the <see cref="bool"/> value if successful; otherwise, <see langword="false"/>.</param>
89
+
/// <returns><see langword="true"/> if a matching item is found, and the value matches a <see cref="bool"/>; otherwise, <see langword="false"/>.</returns>
/// Attempts to get the <see cref="bool"/> value of the item at the specified <paramref name="index"/> in the array.
96
+
/// </summary>
97
+
/// <param name="array">The parent array.</param>
98
+
/// <param name="index">The index of the item.</param>
99
+
/// <param name="result">When this method returns, holds the <see cref="bool"/> value if successful; otherwise, <see langword="null"/>.</param>
100
+
/// <returns><see langword="true"/> if a matching item is found, and the value matches a <see cref="bool"/>; otherwise, <see langword="null"/>.</returns>
/// Attempts to get the <see cref="bool"/> value of the token matching the specified <paramref name="path"/>.
107
+
/// </summary>
108
+
/// <param name="array">The parent array.</param>
109
+
/// <param name="path">A <see cref="string"/> that contains a JPath expression.</param>
110
+
/// <param name="result">When this method returns, holds the <see cref="bool"/> value if successful; otherwise, <see langword="false"/>.</param>
111
+
/// <returns><see langword="true"/> if a matching token is found, and the value matches a <see cref="bool"/>; otherwise, <see langword="false"/>.</returns>
/// Attempts to get the <see cref="bool"/> value of the token matching the specified <paramref name="path"/>.
118
+
/// </summary>
119
+
/// <param name="array">The parent array.</param>
120
+
/// <param name="path">A <see cref="string"/> that contains a JPath expression.</param>
121
+
/// <param name="result">When this method returns, holds the <see cref="bool"/> value if successful; otherwise, <see langword="null"/>.</param>
122
+
/// <returns><see langword="true"/> if a matching token is found, and the value matches a <see cref="bool"/>; otherwise, <see langword="null"/>.</returns>
/// Attempts to get the <see cref="double"/> value of the item at the specified <paramref name="index"/> in the array.
96
+
/// </summary>
97
+
/// <param name="array">The parent array.</param>
98
+
/// <param name="index">The index of the item.</param>
99
+
/// <param name="result">When this method returns, holds the <see cref="double"/> value if successful; otherwise, <see langword="null"/>.</param>
100
+
/// <returns><see langword="true"/> if a matching item is found, and the value matches a <see cref="double"/>; otherwise, <see langword="null"/>.</returns>
/// Attempts to get the <see cref="double"/> value of the token matching the specified <paramref name="path"/>.
118
+
/// </summary>
119
+
/// <param name="array">The parent array.</param>
120
+
/// <param name="path">A <see cref="string"/> that contains a JPath expression.</param>
121
+
/// <param name="result">When this method returns, holds the <see cref="double"/> value if successful; otherwise, <see langword="null"/>.</param>
122
+
/// <returns><see langword="true"/> if a matching token is found, and the value matches a <see cref="double"/>; otherwise, <see langword="null"/>.</returns>
0 commit comments