-Performance
-Add CLSCompliant attributes -Fix BSON string reading bug
This commit is contained in:
@@ -674,6 +674,7 @@ namespace Newtonsoft.Json
|
||||
/// Writes a <see cref="UInt32"/> value.
|
||||
/// </summary>
|
||||
/// <param name="value">The <see cref="UInt32"/> value to write.</param>
|
||||
[CLSCompliant(false)]
|
||||
public virtual void WriteValue(uint value)
|
||||
{
|
||||
AutoComplete(JsonToken.Integer);
|
||||
@@ -692,6 +693,7 @@ namespace Newtonsoft.Json
|
||||
/// Writes a <see cref="UInt64"/> value.
|
||||
/// </summary>
|
||||
/// <param name="value">The <see cref="UInt64"/> value to write.</param>
|
||||
[CLSCompliant(false)]
|
||||
public virtual void WriteValue(ulong value)
|
||||
{
|
||||
AutoComplete(JsonToken.Integer);
|
||||
@@ -737,6 +739,7 @@ namespace Newtonsoft.Json
|
||||
/// Writes a <see cref="UInt16"/> value.
|
||||
/// </summary>
|
||||
/// <param name="value">The <see cref="UInt16"/> value to write.</param>
|
||||
[CLSCompliant(false)]
|
||||
public virtual void WriteValue(ushort value)
|
||||
{
|
||||
AutoComplete(JsonToken.Integer);
|
||||
@@ -764,6 +767,7 @@ namespace Newtonsoft.Json
|
||||
/// Writes a <see cref="SByte"/> value.
|
||||
/// </summary>
|
||||
/// <param name="value">The <see cref="SByte"/> value to write.</param>
|
||||
[CLSCompliant(false)]
|
||||
public virtual void WriteValue(sbyte value)
|
||||
{
|
||||
AutoComplete(JsonToken.Integer);
|
||||
@@ -814,6 +818,7 @@ namespace Newtonsoft.Json
|
||||
/// Writes a <see cref="Nullable{UInt32}"/> value.
|
||||
/// </summary>
|
||||
/// <param name="value">The <see cref="Nullable{UInt32}"/> value to write.</param>
|
||||
[CLSCompliant(false)]
|
||||
public virtual void WriteValue(uint? value)
|
||||
{
|
||||
if (value == null)
|
||||
@@ -838,6 +843,7 @@ namespace Newtonsoft.Json
|
||||
/// Writes a <see cref="Nullable{UInt64}"/> value.
|
||||
/// </summary>
|
||||
/// <param name="value">The <see cref="Nullable{UInt64}"/> value to write.</param>
|
||||
[CLSCompliant(false)]
|
||||
public virtual void WriteValue(ulong? value)
|
||||
{
|
||||
if (value == null)
|
||||
@@ -898,6 +904,7 @@ namespace Newtonsoft.Json
|
||||
/// Writes a <see cref="Nullable{UInt16}"/> value.
|
||||
/// </summary>
|
||||
/// <param name="value">The <see cref="Nullable{UInt16}"/> value to write.</param>
|
||||
[CLSCompliant(false)]
|
||||
public virtual void WriteValue(ushort? value)
|
||||
{
|
||||
if (value == null)
|
||||
@@ -934,6 +941,7 @@ namespace Newtonsoft.Json
|
||||
/// Writes a <see cref="Nullable{SByte}"/> value.
|
||||
/// </summary>
|
||||
/// <param name="value">The <see cref="Nullable{SByte}"/> value to write.</param>
|
||||
[CLSCompliant(false)]
|
||||
public virtual void WriteValue(sbyte? value)
|
||||
{
|
||||
if (value == null)
|
||||
|
||||
Reference in New Issue
Block a user