-Upgraded to Immutable Collections RTM
-Added missing CLSCompliant attributes
This commit is contained in:
@@ -739,6 +739,7 @@ namespace Newtonsoft.Json.Linq
|
||||
/// </summary>
|
||||
/// <param name="value">The value.</param>
|
||||
/// <returns>The result of the conversion.</returns>
|
||||
[CLSCompliant(false)]
|
||||
public static explicit operator sbyte(JToken value)
|
||||
{
|
||||
JValue v = EnsureValue(value);
|
||||
@@ -847,6 +848,7 @@ namespace Newtonsoft.Json.Linq
|
||||
/// </summary>
|
||||
/// <param name="value">The value.</param>
|
||||
/// <returns>The result of the conversion.</returns>
|
||||
[CLSCompliant(false)]
|
||||
public static explicit operator sbyte?(JToken value)
|
||||
{
|
||||
if (value == null)
|
||||
@@ -1289,6 +1291,7 @@ namespace Newtonsoft.Json.Linq
|
||||
/// </summary>
|
||||
/// <param name="value">The value to create a <see cref="JValue"/> from.</param>
|
||||
/// <returns>The <see cref="JValue"/> initialized with the specified value.</returns>
|
||||
[CLSCompliant(false)]
|
||||
public static implicit operator JToken(sbyte value)
|
||||
{
|
||||
return new JValue(value);
|
||||
@@ -1299,6 +1302,7 @@ namespace Newtonsoft.Json.Linq
|
||||
/// </summary>
|
||||
/// <param name="value">The value to create a <see cref="JValue"/> from.</param>
|
||||
/// <returns>The <see cref="JValue"/> initialized with the specified value.</returns>
|
||||
[CLSCompliant(false)]
|
||||
public static implicit operator JToken(sbyte? value)
|
||||
{
|
||||
return new JValue(value);
|
||||
|
||||
Reference in New Issue
Block a user