Merge branch 'master' of https://github.com/JamesNK/Newtonsoft.Json
This commit is contained in:
@@ -35,7 +35,7 @@ using Newtonsoft.Json.Linq;
|
||||
namespace Newtonsoft.Json.Bson
|
||||
{
|
||||
/// <summary>
|
||||
/// Represents a reader that provides fast, non-cached, forward-only access to serialized JSON data.
|
||||
/// Represents a reader that provides fast, non-cached, forward-only access to serialized BSON data.
|
||||
/// </summary>
|
||||
public class BsonReader : JsonReader
|
||||
{
|
||||
@@ -122,7 +122,7 @@ namespace Newtonsoft.Json.Bson
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="BsonReader"/> class.
|
||||
/// </summary>
|
||||
/// <param name="stream">The stream.</param>
|
||||
/// <param name="stream">The <see cref="Stream"/> containing the BSON data to read.</param>
|
||||
public BsonReader(Stream stream)
|
||||
: this(stream, false, DateTimeKind.Local)
|
||||
{
|
||||
@@ -131,7 +131,7 @@ namespace Newtonsoft.Json.Bson
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="BsonReader"/> class.
|
||||
/// </summary>
|
||||
/// <param name="reader">The reader.</param>
|
||||
/// <param name="reader">The <see cref="BinaryReader"/> containing the BSON data to read.</param>
|
||||
public BsonReader(BinaryReader reader)
|
||||
: this(reader, false, DateTimeKind.Local)
|
||||
{
|
||||
@@ -140,7 +140,7 @@ namespace Newtonsoft.Json.Bson
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="BsonReader"/> class.
|
||||
/// </summary>
|
||||
/// <param name="stream">The stream.</param>
|
||||
/// <param name="stream">The <see cref="Stream"/> containing the BSON data to read.</param>
|
||||
/// <param name="readRootValueAsArray">if set to <c>true</c> the root object will be read as a JSON array.</param>
|
||||
/// <param name="dateTimeKindHandling">The <see cref="DateTimeKind" /> used when reading <see cref="DateTime"/> values from BSON.</param>
|
||||
public BsonReader(Stream stream, bool readRootValueAsArray, DateTimeKind dateTimeKindHandling)
|
||||
@@ -155,7 +155,7 @@ namespace Newtonsoft.Json.Bson
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="BsonReader"/> class.
|
||||
/// </summary>
|
||||
/// <param name="reader">The reader.</param>
|
||||
/// <param name="reader">The <see cref="BinaryReader"/> containing the BSON data to read.</param>
|
||||
/// <param name="readRootValueAsArray">if set to <c>true</c> the root object will be read as a JSON array.</param>
|
||||
/// <param name="dateTimeKindHandling">The <see cref="DateTimeKind" /> used when reading <see cref="DateTime"/> values from BSON.</param>
|
||||
public BsonReader(BinaryReader reader, bool readRootValueAsArray, DateTimeKind dateTimeKindHandling)
|
||||
@@ -175,7 +175,7 @@ namespace Newtonsoft.Json.Bson
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Reads the next JSON token from the stream.
|
||||
/// Reads the next JSON token from the underlying <see cref="Stream"/>.
|
||||
/// </summary>
|
||||
/// <returns>
|
||||
/// <c>true</c> if the next token was read successfully; <c>false</c> if there are no more tokens to read.
|
||||
@@ -223,7 +223,8 @@ namespace Newtonsoft.Json.Bson
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Changes the <see cref="JsonReader.State"/> to Closed.
|
||||
/// Changes the reader's state to <see cref="JsonReader.State.Closed"/>.
|
||||
/// If <see cref="JsonReader.CloseInput"/> is set to <c>true</c>, the underlying <see cref="Stream"/> is also closed.
|
||||
/// </summary>
|
||||
public override void Close()
|
||||
{
|
||||
|
||||
@@ -38,7 +38,7 @@ using System.Globalization;
|
||||
namespace Newtonsoft.Json.Bson
|
||||
{
|
||||
/// <summary>
|
||||
/// Represents a writer that provides a fast, non-cached, forward-only way of generating JSON data.
|
||||
/// Represents a writer that provides a fast, non-cached, forward-only way of generating BSON data.
|
||||
/// </summary>
|
||||
public class BsonWriter : JsonWriter
|
||||
{
|
||||
@@ -62,7 +62,7 @@ namespace Newtonsoft.Json.Bson
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="BsonWriter"/> class.
|
||||
/// </summary>
|
||||
/// <param name="stream">The stream.</param>
|
||||
/// <param name="stream">The <see cref="Stream"/> to write to.</param>
|
||||
public BsonWriter(Stream stream)
|
||||
{
|
||||
ValidationUtils.ArgumentNotNull(stream, nameof(stream));
|
||||
@@ -72,7 +72,7 @@ namespace Newtonsoft.Json.Bson
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="BsonWriter"/> class.
|
||||
/// </summary>
|
||||
/// <param name="writer">The writer.</param>
|
||||
/// <param name="writer">The <see cref="BinaryWriter"/> to write to.</param>
|
||||
public BsonWriter(BinaryWriter writer)
|
||||
{
|
||||
ValidationUtils.ArgumentNotNull(writer, nameof(writer));
|
||||
@@ -80,7 +80,7 @@ namespace Newtonsoft.Json.Bson
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Flushes whatever is in the buffer to the underlying streams and also flushes the underlying stream.
|
||||
/// Flushes whatever is in the buffer to the underlying <see cref="Stream"/> and also flushes the underlying stream.
|
||||
/// </summary>
|
||||
public override void Flush()
|
||||
{
|
||||
@@ -170,7 +170,8 @@ namespace Newtonsoft.Json.Bson
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Closes this stream and the underlying stream.
|
||||
/// Closes this writer.
|
||||
/// If <see cref="JsonWriter.CloseOutput"/> is set to <c>true</c>, the underlying <see cref="Stream"/> is also closed.
|
||||
/// </summary>
|
||||
public override void Close()
|
||||
{
|
||||
|
||||
@@ -32,7 +32,7 @@ using Newtonsoft.Json.Utilities;
|
||||
namespace Newtonsoft.Json.Converters
|
||||
{
|
||||
/// <summary>
|
||||
/// Converts an Entity Framework <c>EntityKey</c> to and from JSON.
|
||||
/// Converts an Entity Framework <see cref="T:System.Data.EntityKeyMember"/> to and from JSON.
|
||||
/// </summary>
|
||||
public class EntityKeyMemberConverter : JsonConverter
|
||||
{
|
||||
|
||||
@@ -30,7 +30,7 @@ using Newtonsoft.Json.Utilities;
|
||||
namespace Newtonsoft.Json.Converters
|
||||
{
|
||||
/// <summary>
|
||||
/// Converts a <see cref="DateTime"/> to and from the ISO 8601 date format (e.g. 2008-04-12T12:53Z).
|
||||
/// Converts a <see cref="DateTime"/> to and from the ISO 8601 date format (e.g. <c>"2008-04-12T12:53Z"</c>).
|
||||
/// </summary>
|
||||
public class IsoDateTimeConverter : DateTimeConverterBase
|
||||
{
|
||||
|
||||
@@ -30,7 +30,7 @@ using Newtonsoft.Json.Utilities;
|
||||
namespace Newtonsoft.Json.Converters
|
||||
{
|
||||
/// <summary>
|
||||
/// Converts a <see cref="DateTime"/> to and from a JavaScript date constructor (e.g. new Date(52231943)).
|
||||
/// Converts a <see cref="DateTime"/> to and from a JavaScript <c>Date</c> constructor (e.g. <c>new Date(52231943)</c>).
|
||||
/// </summary>
|
||||
public class JavaScriptDateTimeConverter : DateTimeConverterBase
|
||||
{
|
||||
|
||||
@@ -30,7 +30,7 @@ using Newtonsoft.Json.Utilities;
|
||||
namespace Newtonsoft.Json.Converters
|
||||
{
|
||||
/// <summary>
|
||||
/// Converts a <see cref="Version"/> to and from a string (e.g. "1.2.3.4").
|
||||
/// Converts a <see cref="Version"/> to and from a string (e.g. <c>"1.2.3.4"</c>).
|
||||
/// </summary>
|
||||
public class VersionConverter : JsonConverter
|
||||
{
|
||||
|
||||
@@ -31,12 +31,12 @@ namespace Newtonsoft.Json
|
||||
public enum DateFormatHandling
|
||||
{
|
||||
/// <summary>
|
||||
/// Dates are written in the ISO 8601 format, e.g. "2012-03-21T05:40Z".
|
||||
/// Dates are written in the ISO 8601 format, e.g. <c>"2012-03-21T05:40Z"</c>.
|
||||
/// </summary>
|
||||
IsoDateFormat,
|
||||
|
||||
/// <summary>
|
||||
/// Dates are written in the Microsoft JSON format, e.g. "\/Date(1198908717056)\/".
|
||||
/// Dates are written in the Microsoft JSON format, e.g. <c>"\/Date(1198908717056)\/"</c>.
|
||||
/// </summary>
|
||||
MicrosoftDateFormat
|
||||
}
|
||||
|
||||
@@ -26,7 +26,7 @@
|
||||
namespace Newtonsoft.Json
|
||||
{
|
||||
/// <summary>
|
||||
/// Specifies how date formatted strings, e.g. "\/Date(1198908717056)\/" and "2012-03-21T05:40Z", are parsed when reading JSON text.
|
||||
/// Specifies how date formatted strings, e.g. <c>"\/Date(1198908717056)\/"</c> and <c>"2012-03-21T05:40Z"</c>, are parsed when reading JSON text.
|
||||
/// </summary>
|
||||
public enum DateParseHandling
|
||||
{
|
||||
@@ -36,12 +36,12 @@ namespace Newtonsoft.Json
|
||||
None = 0,
|
||||
|
||||
/// <summary>
|
||||
/// Date formatted strings, e.g. "\/Date(1198908717056)\/" and "2012-03-21T05:40Z", are parsed to <see cref="DateTime"/>.
|
||||
/// Date formatted strings, e.g. <c>"\/Date(1198908717056)\/"</c> and <c>"2012-03-21T05:40Z"</c>, are parsed to <see cref="DateTime"/>.
|
||||
/// </summary>
|
||||
DateTime = 1,
|
||||
#if !NET20
|
||||
/// <summary>
|
||||
/// Date formatted strings, e.g. "\/Date(1198908717056)\/" and "2012-03-21T05:40Z", are parsed to <see cref="DateTimeOffset"/>.
|
||||
/// Date formatted strings, e.g. <c>"\/Date(1198908717056)\/"</c> and <c>"2012-03-21T05:40Z"</c>, are parsed to <see cref="DateTimeOffset"/>.
|
||||
/// </summary>
|
||||
DateTimeOffset = 2
|
||||
#endif
|
||||
|
||||
@@ -23,27 +23,29 @@
|
||||
// OTHER DEALINGS IN THE SOFTWARE.
|
||||
#endregion
|
||||
|
||||
using System;
|
||||
|
||||
namespace Newtonsoft.Json
|
||||
{
|
||||
/// <summary>
|
||||
/// Specifies float format handling options when writing special floating point numbers, e.g. <see cref="F:System.Double.NaN"/>,
|
||||
/// <see cref="F:System.Double.PositiveInfinity"/> and <see cref="F:System.Double.NegativeInfinity"/> with <see cref="JsonWriter"/>.
|
||||
/// Specifies float format handling options when writing special floating point numbers, e.g. <see cref="Double.NaN"/>,
|
||||
/// <see cref="Double.PositiveInfinity"/> and <see cref="Double.NegativeInfinity"/> with <see cref="JsonWriter"/>.
|
||||
/// </summary>
|
||||
public enum FloatFormatHandling
|
||||
{
|
||||
/// <summary>
|
||||
/// Write special floating point values as strings in JSON, e.g. "NaN", "Infinity", "-Infinity".
|
||||
/// Write special floating point values as strings in JSON, e.g. <c>"NaN"</c>, <c>"Infinity"</c>, <c>"-Infinity"</c>.
|
||||
/// </summary>
|
||||
String = 0,
|
||||
|
||||
/// <summary>
|
||||
/// Write special floating point values as symbols in JSON, e.g. "NaN", "Infinity", "-Infinity".
|
||||
/// Write special floating point values as symbols in JSON, e.g. <c>NaN</c>, <c>Infinity</c>, <c>-Infinity</c>.
|
||||
/// Note that this will produce non-valid JSON.
|
||||
/// </summary>
|
||||
Symbol = 1,
|
||||
|
||||
/// <summary>
|
||||
/// Write special floating point values as the property's default value in JSON, e.g. 0.0 for a <see cref="System.Double"/> property, null for a <see cref="System.Nullable{Double}"/> property.
|
||||
/// Write special floating point values as the property's default value in JSON, e.g. 0.0 for a <see cref="Double"/> property, <c>null</c> for a <see cref="Nullable{T}"/> of <see cref="Double"/> property.
|
||||
/// </summary>
|
||||
DefaultValue = 2
|
||||
}
|
||||
|
||||
@@ -9,12 +9,12 @@ namespace System.Runtime.Serialization.Formatters
|
||||
public enum FormatterAssemblyStyle
|
||||
{
|
||||
/// <summary>
|
||||
/// In simple mode, the assembly used during deserialization need not match exactly the assembly used during serialization. Specifically, the version numbers need not match as the <c>LoadWithPartialName</c> method is used to load the assembly.
|
||||
/// In simple mode, the assembly used during deserialization need not match exactly the assembly used during serialization. Specifically, the version numbers need not match as the <see cref="M:System.Reflection.Assembly.LoadWithPartialName(String)"/> method is used to load the assembly.
|
||||
/// </summary>
|
||||
Simple = 0,
|
||||
|
||||
/// <summary>
|
||||
/// In full mode, the assembly used during deserialization must match exactly the assembly used during serialization. The Load method of the Assembly class is used to load the assembly.
|
||||
/// In full mode, the assembly used during deserialization must match exactly the assembly used during serialization. The <see cref="System.Reflection.Assembly.Load"/> is used to load the assembly.
|
||||
/// </summary>
|
||||
Full = 1
|
||||
}
|
||||
|
||||
@@ -60,8 +60,8 @@ namespace Newtonsoft.Json
|
||||
|
||||
/// <summary>
|
||||
/// The parameter list to use when constructing the <see cref="JsonConverter"/> described by <see cref="ItemConverterType"/>.
|
||||
/// If null, the default constructor is used.
|
||||
/// When non-null, there must be a constructor defined in the <see cref="JsonConverter"/> that exactly matches the number,
|
||||
/// If <c>null</c>, the default constructor is used.
|
||||
/// When non-<c>null</c>, there must be a constructor defined in the <see cref="JsonConverter"/> that exactly matches the number,
|
||||
/// order, and type of these parameters.
|
||||
/// </summary>
|
||||
/// <example>
|
||||
@@ -87,8 +87,8 @@ namespace Newtonsoft.Json
|
||||
|
||||
/// <summary>
|
||||
/// The parameter list to use when constructing the <see cref="NamingStrategy"/> described by <see cref="NamingStrategyType"/>.
|
||||
/// If null, the default constructor is used.
|
||||
/// When non-null, there must be a constructor defined in the <see cref="NamingStrategy"/> that exactly matches the number,
|
||||
/// If <c>null</c>, the default constructor is used.
|
||||
/// When non-<c>null</c>, there must be a constructor defined in the <see cref="NamingStrategy"/> that exactly matches the number,
|
||||
/// order, and type of these parameters.
|
||||
/// </summary>
|
||||
/// <example>
|
||||
|
||||
@@ -534,7 +534,7 @@ namespace Newtonsoft.Json
|
||||
/// Serializes the specified object to a JSON string using formatting.
|
||||
/// </summary>
|
||||
/// <param name="value">The object to serialize.</param>
|
||||
/// <param name="formatting">Indicates how the output is formatted.</param>
|
||||
/// <param name="formatting">Indicates how the output should be formatted.</param>
|
||||
/// <returns>
|
||||
/// A JSON string representation of the object.
|
||||
/// </returns>
|
||||
@@ -547,7 +547,7 @@ namespace Newtonsoft.Json
|
||||
/// Serializes the specified object to a JSON string using a collection of <see cref="JsonConverter"/>.
|
||||
/// </summary>
|
||||
/// <param name="value">The object to serialize.</param>
|
||||
/// <param name="converters">A collection converters used while serializing.</param>
|
||||
/// <param name="converters">A collection of converters used while serializing.</param>
|
||||
/// <returns>A JSON string representation of the object.</returns>
|
||||
public static string SerializeObject(object value, params JsonConverter[] converters)
|
||||
{
|
||||
@@ -562,8 +562,8 @@ namespace Newtonsoft.Json
|
||||
/// Serializes the specified object to a JSON string using formatting and a collection of <see cref="JsonConverter"/>.
|
||||
/// </summary>
|
||||
/// <param name="value">The object to serialize.</param>
|
||||
/// <param name="formatting">Indicates how the output is formatted.</param>
|
||||
/// <param name="converters">A collection converters used while serializing.</param>
|
||||
/// <param name="formatting">Indicates how the output should be formatted.</param>
|
||||
/// <param name="converters">A collection of converters used while serializing.</param>
|
||||
/// <returns>A JSON string representation of the object.</returns>
|
||||
public static string SerializeObject(object value, Formatting formatting, params JsonConverter[] converters)
|
||||
{
|
||||
@@ -579,7 +579,7 @@ namespace Newtonsoft.Json
|
||||
/// </summary>
|
||||
/// <param name="value">The object to serialize.</param>
|
||||
/// <param name="settings">The <see cref="JsonSerializerSettings"/> used to serialize the object.
|
||||
/// If this is null, default serialization settings will be used.</param>
|
||||
/// If this is <c>null</c>, default serialization settings will be used.</param>
|
||||
/// <returns>
|
||||
/// A JSON string representation of the object.
|
||||
/// </returns>
|
||||
@@ -593,10 +593,10 @@ namespace Newtonsoft.Json
|
||||
/// </summary>
|
||||
/// <param name="value">The object to serialize.</param>
|
||||
/// <param name="settings">The <see cref="JsonSerializerSettings"/> used to serialize the object.
|
||||
/// If this is null, default serialization settings will be used.</param>
|
||||
/// If this is <c>null</c>, default serialization settings will be used.</param>
|
||||
/// <param name="type">
|
||||
/// The type of the value being serialized.
|
||||
/// This parameter is used when <see cref="TypeNameHandling"/> is Auto to write out the type name if the type of the value does not match.
|
||||
/// This parameter is used when <see cref="JsonSerializer.TypeNameHandling"/> is <see cref="TypeNameHandling.Auto"/> to write out the type name if the type of the value does not match.
|
||||
/// Specifing the type is optional.
|
||||
/// </param>
|
||||
/// <returns>
|
||||
@@ -613,9 +613,9 @@ namespace Newtonsoft.Json
|
||||
/// Serializes the specified object to a JSON string using formatting and <see cref="JsonSerializerSettings"/>.
|
||||
/// </summary>
|
||||
/// <param name="value">The object to serialize.</param>
|
||||
/// <param name="formatting">Indicates how the output is formatted.</param>
|
||||
/// <param name="formatting">Indicates how the output should be formatted.</param>
|
||||
/// <param name="settings">The <see cref="JsonSerializerSettings"/> used to serialize the object.
|
||||
/// If this is null, default serialization settings will be used.</param>
|
||||
/// If this is <c>null</c>, default serialization settings will be used.</param>
|
||||
/// <returns>
|
||||
/// A JSON string representation of the object.
|
||||
/// </returns>
|
||||
@@ -628,12 +628,12 @@ namespace Newtonsoft.Json
|
||||
/// Serializes the specified object to a JSON string using a type, formatting and <see cref="JsonSerializerSettings"/>.
|
||||
/// </summary>
|
||||
/// <param name="value">The object to serialize.</param>
|
||||
/// <param name="formatting">Indicates how the output is formatted.</param>
|
||||
/// <param name="formatting">Indicates how the output should be formatted.</param>
|
||||
/// <param name="settings">The <see cref="JsonSerializerSettings"/> used to serialize the object.
|
||||
/// If this is null, default serialization settings will be used.</param>
|
||||
/// If this is <c>null</c>, default serialization settings will be used.</param>
|
||||
/// <param name="type">
|
||||
/// The type of the value being serialized.
|
||||
/// This parameter is used when <see cref="TypeNameHandling"/> is Auto to write out the type name if the type of the value does not match.
|
||||
/// This parameter is used when <see cref="JsonSerializer.TypeNameHandling"/> is <see cref="TypeNameHandling.Auto"/> to write out the type name if the type of the value does not match.
|
||||
/// Specifing the type is optional.
|
||||
/// </param>
|
||||
/// <returns>
|
||||
@@ -668,7 +668,7 @@ namespace Newtonsoft.Json
|
||||
/// </summary>
|
||||
/// <param name="value">The object to serialize.</param>
|
||||
/// <returns>
|
||||
/// A task that represents the asynchronous serialize operation. The value of the <c>TResult</c> parameter contains a JSON string representation of the object.
|
||||
/// A task that represents the asynchronous serialization operation. The value of the <c>TResult</c> parameter contains a JSON string representation of the object.
|
||||
/// </returns>
|
||||
[ObsoleteAttribute("SerializeObjectAsync is obsolete. Use the Task.Factory.StartNew method to serialize JSON asynchronously: Task.Factory.StartNew(() => JsonConvert.SerializeObject(value))")]
|
||||
public static Task<string> SerializeObjectAsync(object value)
|
||||
@@ -681,9 +681,9 @@ namespace Newtonsoft.Json
|
||||
/// Serialization will happen on a new thread.
|
||||
/// </summary>
|
||||
/// <param name="value">The object to serialize.</param>
|
||||
/// <param name="formatting">Indicates how the output is formatted.</param>
|
||||
/// <param name="formatting">Indicates how the output should be formatted.</param>
|
||||
/// <returns>
|
||||
/// A task that represents the asynchronous serialize operation. The value of the <c>TResult</c> parameter contains a JSON string representation of the object.
|
||||
/// A task that represents the asynchronous serialization operation. The value of the <c>TResult</c> parameter contains a JSON string representation of the object.
|
||||
/// </returns>
|
||||
[ObsoleteAttribute("SerializeObjectAsync is obsolete. Use the Task.Factory.StartNew method to serialize JSON asynchronously: Task.Factory.StartNew(() => JsonConvert.SerializeObject(value, formatting))")]
|
||||
public static Task<string> SerializeObjectAsync(object value, Formatting formatting)
|
||||
@@ -696,11 +696,11 @@ namespace Newtonsoft.Json
|
||||
/// Serialization will happen on a new thread.
|
||||
/// </summary>
|
||||
/// <param name="value">The object to serialize.</param>
|
||||
/// <param name="formatting">Indicates how the output is formatted.</param>
|
||||
/// <param name="formatting">Indicates how the output should be formatted.</param>
|
||||
/// <param name="settings">The <see cref="JsonSerializerSettings"/> used to serialize the object.
|
||||
/// If this is null, default serialization settings will be used.</param>
|
||||
/// If this is <c>null</c>, default serialization settings will be used.</param>
|
||||
/// <returns>
|
||||
/// A task that represents the asynchronous serialize operation. The value of the <c>TResult</c> parameter contains a JSON string representation of the object.
|
||||
/// A task that represents the asynchronous serialization operation. The value of the <c>TResult</c> parameter contains a JSON string representation of the object.
|
||||
/// </returns>
|
||||
[ObsoleteAttribute("SerializeObjectAsync is obsolete. Use the Task.Factory.StartNew method to serialize JSON asynchronously: Task.Factory.StartNew(() => JsonConvert.SerializeObject(value, formatting, settings))")]
|
||||
public static Task<string> SerializeObjectAsync(object value, Formatting formatting, JsonSerializerSettings settings)
|
||||
@@ -727,7 +727,7 @@ namespace Newtonsoft.Json
|
||||
/// <param name="value">The JSON to deserialize.</param>
|
||||
/// <param name="settings">
|
||||
/// The <see cref="JsonSerializerSettings"/> used to deserialize the object.
|
||||
/// If this is null, default serialization settings will be used.
|
||||
/// If this is <c>null</c>, default serialization settings will be used.
|
||||
/// </param>
|
||||
/// <returns>The deserialized object from the JSON string.</returns>
|
||||
public static object DeserializeObject(string value, JsonSerializerSettings settings)
|
||||
@@ -785,7 +785,7 @@ namespace Newtonsoft.Json
|
||||
/// <param name="anonymousTypeObject">The anonymous type object.</param>
|
||||
/// <param name="settings">
|
||||
/// The <see cref="JsonSerializerSettings"/> used to deserialize the object.
|
||||
/// If this is null, default serialization settings will be used.
|
||||
/// If this is <c>null</c>, default serialization settings will be used.
|
||||
/// </param>
|
||||
/// <returns>The deserialized anonymous type from the JSON string.</returns>
|
||||
public static T DeserializeAnonymousType<T>(string value, T anonymousTypeObject, JsonSerializerSettings settings)
|
||||
@@ -812,7 +812,7 @@ namespace Newtonsoft.Json
|
||||
/// <param name="value">The object to deserialize.</param>
|
||||
/// <param name="settings">
|
||||
/// The <see cref="JsonSerializerSettings"/> used to deserialize the object.
|
||||
/// If this is null, default serialization settings will be used.
|
||||
/// If this is <c>null</c>, default serialization settings will be used.
|
||||
/// </param>
|
||||
/// <returns>The deserialized object from the JSON string.</returns>
|
||||
public static T DeserializeObject<T>(string value, JsonSerializerSettings settings)
|
||||
@@ -843,7 +843,7 @@ namespace Newtonsoft.Json
|
||||
/// <param name="type">The type of the object to deserialize to.</param>
|
||||
/// <param name="settings">
|
||||
/// The <see cref="JsonSerializerSettings"/> used to deserialize the object.
|
||||
/// If this is null, default serialization settings will be used.
|
||||
/// If this is <c>null</c>, default serialization settings will be used.
|
||||
/// </param>
|
||||
/// <returns>The deserialized object from the JSON string.</returns>
|
||||
public static object DeserializeObject(string value, Type type, JsonSerializerSettings settings)
|
||||
@@ -888,7 +888,7 @@ namespace Newtonsoft.Json
|
||||
/// <param name="value">The JSON to deserialize.</param>
|
||||
/// <param name="settings">
|
||||
/// The <see cref="JsonSerializerSettings"/> used to deserialize the object.
|
||||
/// If this is null, default serialization settings will be used.
|
||||
/// If this is <c>null</c>, default serialization settings will be used.
|
||||
/// </param>
|
||||
/// <returns>
|
||||
/// A task that represents the asynchronous deserialization operation. The value of the <c>TResult</c> parameter contains the deserialized object from the JSON string.
|
||||
@@ -921,7 +921,7 @@ namespace Newtonsoft.Json
|
||||
/// <param name="type">The type of the object to deserialize to.</param>
|
||||
/// <param name="settings">
|
||||
/// The <see cref="JsonSerializerSettings"/> used to deserialize the object.
|
||||
/// If this is null, default serialization settings will be used.
|
||||
/// If this is <c>null</c>, default serialization settings will be used.
|
||||
/// </param>
|
||||
/// <returns>
|
||||
/// A task that represents the asynchronous deserialization operation. The value of the <c>TResult</c> parameter contains the deserialized object from the JSON string.
|
||||
@@ -952,7 +952,7 @@ namespace Newtonsoft.Json
|
||||
/// <param name="target">The target object to populate values onto.</param>
|
||||
/// <param name="settings">
|
||||
/// The <see cref="JsonSerializerSettings"/> used to deserialize the object.
|
||||
/// If this is null, default serialization settings will be used.
|
||||
/// If this is <c>null</c>, default serialization settings will be used.
|
||||
/// </param>
|
||||
public static void PopulateObject(string value, object target, JsonSerializerSettings settings)
|
||||
{
|
||||
@@ -977,10 +977,10 @@ namespace Newtonsoft.Json
|
||||
/// <param name="target">The target object to populate values onto.</param>
|
||||
/// <param name="settings">
|
||||
/// The <see cref="JsonSerializerSettings"/> used to deserialize the object.
|
||||
/// If this is null, default serialization settings will be used.
|
||||
/// If this is <c>null</c>, default serialization settings will be used.
|
||||
/// </param>
|
||||
/// <returns>
|
||||
/// A task that represents the asynchronous populate operation.
|
||||
/// A task that represents the asynchronous population operation.
|
||||
/// </returns>
|
||||
[ObsoleteAttribute("PopulateObjectAsync is obsolete. Use the Task.Factory.StartNew method to populate an object with JSON values asynchronously: Task.Factory.StartNew(() => JsonConvert.PopulateObject(value, target, settings))")]
|
||||
public static Task PopulateObjectAsync(string value, object target, JsonSerializerSettings settings)
|
||||
@@ -996,7 +996,7 @@ namespace Newtonsoft.Json
|
||||
/// Serializes the <see cref="XmlNode"/> to a JSON string.
|
||||
/// </summary>
|
||||
/// <param name="node">The node to serialize.</param>
|
||||
/// <returns>A JSON string of the XmlNode.</returns>
|
||||
/// <returns>A JSON string of the <see cref="XmlNode"/>.</returns>
|
||||
public static string SerializeXmlNode(XmlNode node)
|
||||
{
|
||||
return SerializeXmlNode(node, Formatting.None);
|
||||
@@ -1007,7 +1007,7 @@ namespace Newtonsoft.Json
|
||||
/// </summary>
|
||||
/// <param name="node">The node to serialize.</param>
|
||||
/// <param name="formatting">Indicates how the output should be formatted.</param>
|
||||
/// <returns>A JSON string of the XmlNode.</returns>
|
||||
/// <returns>A JSON string of the <see cref="XmlNode"/>.</returns>
|
||||
public static string SerializeXmlNode(XmlNode node, Formatting formatting)
|
||||
{
|
||||
XmlNodeConverter converter = new XmlNodeConverter();
|
||||
@@ -1021,7 +1021,7 @@ namespace Newtonsoft.Json
|
||||
/// <param name="node">The node to serialize.</param>
|
||||
/// <param name="formatting">Indicates how the output should be formatted.</param>
|
||||
/// <param name="omitRootObject">Omits writing the root object.</param>
|
||||
/// <returns>A JSON string of the XmlNode.</returns>
|
||||
/// <returns>A JSON string of the <see cref="XmlNode"/>.</returns>
|
||||
public static string SerializeXmlNode(XmlNode node, Formatting formatting, bool omitRootObject)
|
||||
{
|
||||
XmlNodeConverter converter = new XmlNodeConverter { OmitRootObject = omitRootObject };
|
||||
@@ -1033,7 +1033,7 @@ namespace Newtonsoft.Json
|
||||
/// Deserializes the <see cref="XmlNode"/> from a JSON string.
|
||||
/// </summary>
|
||||
/// <param name="value">The JSON string.</param>
|
||||
/// <returns>The deserialized XmlNode</returns>
|
||||
/// <returns>The deserialized <see cref="XmlNode"/>.</returns>
|
||||
public static XmlDocument DeserializeXmlNode(string value)
|
||||
{
|
||||
return DeserializeXmlNode(value, null);
|
||||
@@ -1044,7 +1044,7 @@ namespace Newtonsoft.Json
|
||||
/// </summary>
|
||||
/// <param name="value">The JSON string.</param>
|
||||
/// <param name="deserializeRootElementName">The name of the root element to append when deserializing.</param>
|
||||
/// <returns>The deserialized XmlNode</returns>
|
||||
/// <returns>The deserialized <see cref="XmlNode"/>.</returns>
|
||||
public static XmlDocument DeserializeXmlNode(string value, string deserializeRootElementName)
|
||||
{
|
||||
return DeserializeXmlNode(value, deserializeRootElementName, false);
|
||||
@@ -1060,7 +1060,7 @@ namespace Newtonsoft.Json
|
||||
/// A flag to indicate whether to write the Json.NET array attribute.
|
||||
/// This attribute helps preserve arrays when converting the written XML back to JSON.
|
||||
/// </param>
|
||||
/// <returns>The deserialized XmlNode</returns>
|
||||
/// <returns>The deserialized <see cref="XmlNode"/>.</returns>
|
||||
public static XmlDocument DeserializeXmlNode(string value, string deserializeRootElementName, bool writeArrayAttribute)
|
||||
{
|
||||
XmlNodeConverter converter = new XmlNodeConverter();
|
||||
@@ -1076,7 +1076,7 @@ namespace Newtonsoft.Json
|
||||
/// Serializes the <see cref="XNode"/> to a JSON string.
|
||||
/// </summary>
|
||||
/// <param name="node">The node to convert to JSON.</param>
|
||||
/// <returns>A JSON string of the XNode.</returns>
|
||||
/// <returns>A JSON string of the <see cref="XNode"/>.</returns>
|
||||
public static string SerializeXNode(XObject node)
|
||||
{
|
||||
return SerializeXNode(node, Formatting.None);
|
||||
@@ -1087,7 +1087,7 @@ namespace Newtonsoft.Json
|
||||
/// </summary>
|
||||
/// <param name="node">The node to convert to JSON.</param>
|
||||
/// <param name="formatting">Indicates how the output should be formatted.</param>
|
||||
/// <returns>A JSON string of the XNode.</returns>
|
||||
/// <returns>A JSON string of the <see cref="XNode"/>.</returns>
|
||||
public static string SerializeXNode(XObject node, Formatting formatting)
|
||||
{
|
||||
return SerializeXNode(node, formatting, false);
|
||||
@@ -1099,7 +1099,7 @@ namespace Newtonsoft.Json
|
||||
/// <param name="node">The node to serialize.</param>
|
||||
/// <param name="formatting">Indicates how the output should be formatted.</param>
|
||||
/// <param name="omitRootObject">Omits writing the root object.</param>
|
||||
/// <returns>A JSON string of the XNode.</returns>
|
||||
/// <returns>A JSON string of the <see cref="XNode"/>.</returns>
|
||||
public static string SerializeXNode(XObject node, Formatting formatting, bool omitRootObject)
|
||||
{
|
||||
XmlNodeConverter converter = new XmlNodeConverter { OmitRootObject = omitRootObject };
|
||||
@@ -1111,7 +1111,7 @@ namespace Newtonsoft.Json
|
||||
/// Deserializes the <see cref="XNode"/> from a JSON string.
|
||||
/// </summary>
|
||||
/// <param name="value">The JSON string.</param>
|
||||
/// <returns>The deserialized XNode</returns>
|
||||
/// <returns>The deserialized <see cref="XNode"/>.</returns>
|
||||
public static XDocument DeserializeXNode(string value)
|
||||
{
|
||||
return DeserializeXNode(value, null);
|
||||
@@ -1122,7 +1122,7 @@ namespace Newtonsoft.Json
|
||||
/// </summary>
|
||||
/// <param name="value">The JSON string.</param>
|
||||
/// <param name="deserializeRootElementName">The name of the root element to append when deserializing.</param>
|
||||
/// <returns>The deserialized XNode</returns>
|
||||
/// <returns>The deserialized <see cref="XNode"/>.</returns>
|
||||
public static XDocument DeserializeXNode(string value, string deserializeRootElementName)
|
||||
{
|
||||
return DeserializeXNode(value, deserializeRootElementName, false);
|
||||
@@ -1138,7 +1138,7 @@ namespace Newtonsoft.Json
|
||||
/// A flag to indicate whether to write the Json.NET array attribute.
|
||||
/// This attribute helps preserve arrays when converting the written XML back to JSON.
|
||||
/// </param>
|
||||
/// <returns>The deserialized XNode</returns>
|
||||
/// <returns>The deserialized <see cref="XNode"/>.</returns>
|
||||
public static XDocument DeserializeXNode(string value, string deserializeRootElementName, bool writeArrayAttribute)
|
||||
{
|
||||
XmlNodeConverter converter = new XmlNodeConverter();
|
||||
|
||||
@@ -71,7 +71,7 @@ namespace Newtonsoft.Json
|
||||
/// JSON Schema validation has been moved to its own package. See <see href="http://www.newtonsoft.com/jsonschema">http://www.newtonsoft.com/jsonschema</see> for more details.
|
||||
/// </note>
|
||||
/// </summary>
|
||||
/// <returns>The <see cref="JsonSchema"/> of the JSON produced by the JsonConverter.</returns>
|
||||
/// <returns>The <see cref="JsonSchema"/> of the JSON produced by the <see cref="JsonConverter"/>.</returns>
|
||||
[Obsolete("JSON Schema validation has been moved to its own package. It is strongly recommended that you do not override GetSchema() in your own converter. It is not used by Json.NET and will be removed at some point in the future. Converter's that override GetSchema() will stop working when it is removed.")]
|
||||
public virtual JsonSchema GetSchema()
|
||||
{
|
||||
|
||||
@@ -48,7 +48,7 @@ namespace Newtonsoft.Json
|
||||
|
||||
/// <summary>
|
||||
/// The parameter list to use when constructing the <see cref="JsonConverter"/> described by <see cref="ConverterType"/>.
|
||||
/// If null, the default constructor is used.
|
||||
/// If <c>null</c>, the default constructor is used.
|
||||
/// </summary>
|
||||
public object[] ConverterParameters { get; private set; }
|
||||
|
||||
@@ -70,7 +70,7 @@ namespace Newtonsoft.Json
|
||||
/// Initializes a new instance of the <see cref="JsonConverterAttribute"/> class.
|
||||
/// </summary>
|
||||
/// <param name="converterType">Type of the <see cref="JsonConverter"/>.</param>
|
||||
/// <param name="converterParameters">Parameter list to use when constructing the <see cref="JsonConverter"/>. Can be null.</param>
|
||||
/// <param name="converterParameters">Parameter list to use when constructing the <see cref="JsonConverter"/>. Can be <c>null</c>.</param>
|
||||
public JsonConverterAttribute(Type converterType, params object[] converterParameters)
|
||||
: this(converterType)
|
||||
{
|
||||
|
||||
@@ -62,7 +62,7 @@ namespace Newtonsoft.Json
|
||||
/// with a specified error message and a reference to the inner exception that is the cause of this exception.
|
||||
/// </summary>
|
||||
/// <param name="message">The error message that explains the reason for the exception.</param>
|
||||
/// <param name="innerException">The exception that is the cause of the current exception, or a null reference (Nothing in Visual Basic) if no inner exception is specified.</param>
|
||||
/// <param name="innerException">The exception that is the cause of the current exception, or <c>null</c> if no inner exception is specified.</param>
|
||||
public JsonException(string message, Exception innerException)
|
||||
: base(message, innerException)
|
||||
{
|
||||
@@ -72,10 +72,10 @@ namespace Newtonsoft.Json
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="JsonException"/> class.
|
||||
/// </summary>
|
||||
/// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo"/> that holds the serialized object data about the exception being thrown.</param>
|
||||
/// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext"/> that contains contextual information about the source or destination.</param>
|
||||
/// <exception cref="T:System.ArgumentNullException">The <paramref name="info"/> parameter is null. </exception>
|
||||
/// <exception cref="T:System.Runtime.Serialization.SerializationException">The class name is null or <see cref="P:System.Exception.HResult"/> is zero (0). </exception>
|
||||
/// <param name="info">The <see cref="SerializationInfo"/> that holds the serialized object data about the exception being thrown.</param>
|
||||
/// <param name="context">The <see cref="StreamingContext"/> that contains contextual information about the source or destination.</param>
|
||||
/// <exception cref="ArgumentNullException">The <paramref name="info"/> parameter is <c>null</c>.</exception>
|
||||
/// <exception cref="SerializationException">The class name is <c>null</c> or <see cref="Exception.HResult"/> is zero (0).</exception>
|
||||
public JsonException(SerializationInfo info, StreamingContext context)
|
||||
: base(info, context)
|
||||
{
|
||||
|
||||
@@ -56,8 +56,8 @@ namespace Newtonsoft.Json
|
||||
|
||||
/// <summary>
|
||||
/// The parameter list to use when constructing the <see cref="JsonConverter"/> described by <see cref="ItemConverterType"/>.
|
||||
/// If null, the default constructor is used.
|
||||
/// When non-null, there must be a constructor defined in the <see cref="JsonConverter"/> that exactly matches the number,
|
||||
/// If <c>null</c>, the default constructor is used.
|
||||
/// When non-<c>null</c>, there must be a constructor defined in the <see cref="JsonConverter"/> that exactly matches the number,
|
||||
/// order, and type of these parameters.
|
||||
/// </summary>
|
||||
/// <example>
|
||||
@@ -74,9 +74,9 @@ namespace Newtonsoft.Json
|
||||
public Type NamingStrategyType { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The parameter list to use when constructing the <see cref="NamingStrategy"/> described by NamingStrategyType.
|
||||
/// If null, the default constructor is used.
|
||||
/// When non-null, there must be a constructor defined in the <see cref="NamingStrategy"/> that exactly matches the number,
|
||||
/// The parameter list to use when constructing the <see cref="NamingStrategy"/> described by <see cref="JsonPropertyAttribute.NamingStrategyType"/>.
|
||||
/// If <c>null</c>, the default constructor is used.
|
||||
/// When non-<c>null</c>, there must be a constructor defined in the <see cref="NamingStrategy"/> that exactly matches the number,
|
||||
/// order, and type of these parameters.
|
||||
/// </summary>
|
||||
/// <example>
|
||||
|
||||
@@ -51,7 +51,7 @@ namespace Newtonsoft.Json
|
||||
protected internal enum State
|
||||
{
|
||||
/// <summary>
|
||||
/// The <see cref="Read"/> method has not been called.
|
||||
/// A <see cref="JsonReader"/> read method has not been called.
|
||||
/// </summary>
|
||||
Start,
|
||||
|
||||
@@ -86,7 +86,7 @@ namespace Newtonsoft.Json
|
||||
Array,
|
||||
|
||||
/// <summary>
|
||||
/// The <see cref="Close"/> method has been called.
|
||||
/// The <see cref="JsonReader.Close()"/> method has been called.
|
||||
/// </summary>
|
||||
Closed,
|
||||
|
||||
@@ -141,12 +141,10 @@ namespace Newtonsoft.Json
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets a value indicating whether the underlying stream or
|
||||
/// <see cref="TextReader"/> should be closed when the reader is closed.
|
||||
/// Gets or sets a value indicating whether the source should be closed when this reader is closed.
|
||||
/// </summary>
|
||||
/// <value>
|
||||
/// <c>true</c> to close the underlying stream or <see cref="TextReader"/> when
|
||||
/// the reader is closed; otherwise <c>false</c>. The default is <c>true</c>.
|
||||
/// <c>true</c> to close the source when this reader is closed; otherwise <c>false</c>. The default is <c>true</c>.
|
||||
/// </value>
|
||||
public bool CloseInput { get; set; }
|
||||
|
||||
@@ -406,15 +404,15 @@ namespace Newtonsoft.Json
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Reads the next JSON token from the stream.
|
||||
/// Reads the next JSON token from the source.
|
||||
/// </summary>
|
||||
/// <returns><c>true</c> if the next token was read successfully; <c>false</c> if there are no more tokens to read.</returns>
|
||||
public abstract bool Read();
|
||||
|
||||
/// <summary>
|
||||
/// Reads the next JSON token from the stream as a <see cref="Nullable{Int32}"/>.
|
||||
/// Reads the next JSON token from the source as a <see cref="Nullable{T}"/> of <see cref="Int32"/>.
|
||||
/// </summary>
|
||||
/// <returns>A <see cref="Nullable{Int32}"/>. This method will return <c>null</c> at the end of an array.</returns>
|
||||
/// <returns>A <see cref="Nullable{T}"/> of <see cref="Int32"/>. This method will return <c>null</c> at the end of an array.</returns>
|
||||
public virtual int? ReadAsInt32()
|
||||
{
|
||||
JsonToken t = GetContentToken();
|
||||
@@ -463,7 +461,7 @@ namespace Newtonsoft.Json
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Reads the next JSON token from the stream as a <see cref="String"/>.
|
||||
/// Reads the next JSON token from the source as a <see cref="String"/>.
|
||||
/// </summary>
|
||||
/// <returns>A <see cref="String"/>. This method will return <c>null</c> at the end of an array.</returns>
|
||||
public virtual string ReadAsString()
|
||||
@@ -507,9 +505,9 @@ namespace Newtonsoft.Json
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Reads the next JSON token from the stream as a <see cref="Byte"/>[].
|
||||
/// Reads the next JSON token from the source as a <see cref="Byte"/>[].
|
||||
/// </summary>
|
||||
/// <returns>A <see cref="Byte"/>[] or a null reference if the next JSON token is null. This method will return <c>null</c> at the end of an array.</returns>
|
||||
/// <returns>A <see cref="Byte"/>[] or <c>null</c> if the next JSON token is null. This method will return <c>null</c> at the end of an array.</returns>
|
||||
public virtual byte[] ReadAsBytes()
|
||||
{
|
||||
JsonToken t = GetContentToken();
|
||||
@@ -606,9 +604,9 @@ namespace Newtonsoft.Json
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Reads the next JSON token from the stream as a <see cref="Nullable{Decimal}"/>.
|
||||
/// Reads the next JSON token from the source as a <see cref="Nullable{T}"/> of <see cref="Double"/>.
|
||||
/// </summary>
|
||||
/// <returns>A <see cref="Nullable{Decimal}"/>. This method will return <c>null</c> at the end of an array.</returns>
|
||||
/// <returns>A <see cref="Nullable{T}"/> of <see cref="Double"/>. This method will return <c>null</c> at the end of an array.</returns>
|
||||
public virtual double? ReadAsDouble()
|
||||
{
|
||||
JsonToken t = GetContentToken();
|
||||
@@ -668,9 +666,9 @@ namespace Newtonsoft.Json
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Reads the next JSON token from the stream as a <see cref="Nullable{Boolean}"/>.
|
||||
/// Reads the next JSON token from the source as a <see cref="Nullable{T}"/> of <see cref="Boolean"/>.
|
||||
/// </summary>
|
||||
/// <returns>A <see cref="Nullable{Boolean}"/>. This method will return <c>null</c> at the end of an array.</returns>
|
||||
/// <returns>A <see cref="Nullable{T}"/> of <see cref="Boolean"/>. This method will return <c>null</c> at the end of an array.</returns>
|
||||
public virtual bool? ReadAsBoolean()
|
||||
{
|
||||
JsonToken t = GetContentToken();
|
||||
@@ -729,9 +727,9 @@ namespace Newtonsoft.Json
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Reads the next JSON token from the stream as a <see cref="Nullable{Decimal}"/>.
|
||||
/// Reads the next JSON token from the source as a <see cref="Nullable{T}"/> of <see cref="Decimal"/>.
|
||||
/// </summary>
|
||||
/// <returns>A <see cref="Nullable{Decimal}"/>. This method will return <c>null</c> at the end of an array.</returns>
|
||||
/// <returns>A <see cref="Nullable{T}"/> of <see cref="Decimal"/>. This method will return <c>null</c> at the end of an array.</returns>
|
||||
public virtual decimal? ReadAsDecimal()
|
||||
{
|
||||
JsonToken t = GetContentToken();
|
||||
@@ -779,9 +777,9 @@ namespace Newtonsoft.Json
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Reads the next JSON token from the stream as a <see cref="Nullable{DateTime}"/>.
|
||||
/// Reads the next JSON token from the source as a <see cref="Nullable{T}"/> of <see cref="DateTime"/>.
|
||||
/// </summary>
|
||||
/// <returns>A <see cref="Nullable{DateTime}"/>. This method will return <c>null</c> at the end of an array.</returns>
|
||||
/// <returns>A <see cref="Nullable{T}"/> of <see cref="DateTime"/>. This method will return <c>null</c> at the end of an array.</returns>
|
||||
public virtual DateTime? ReadAsDateTime()
|
||||
{
|
||||
switch (GetContentToken())
|
||||
@@ -835,9 +833,9 @@ namespace Newtonsoft.Json
|
||||
|
||||
#if !NET20
|
||||
/// <summary>
|
||||
/// Reads the next JSON token from the stream as a <see cref="Nullable{DateTimeOffset}"/>.
|
||||
/// Reads the next JSON token from the source as a <see cref="Nullable{T}"/> of <see cref="DateTimeOffset"/>.
|
||||
/// </summary>
|
||||
/// <returns>A <see cref="Nullable{DateTimeOffset}"/>. This method will return <c>null</c> at the end of an array.</returns>
|
||||
/// <returns>A <see cref="Nullable{T}"/> of <see cref="DateTimeOffset"/>. This method will return <c>null</c> at the end of an array.</returns>
|
||||
public virtual DateTimeOffset? ReadAsDateTimeOffset()
|
||||
{
|
||||
JsonToken t = GetContentToken();
|
||||
@@ -1104,9 +1102,6 @@ namespace Newtonsoft.Json
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
|
||||
/// </summary>
|
||||
void IDisposable.Dispose()
|
||||
{
|
||||
Dispose(true);
|
||||
@@ -1126,7 +1121,8 @@ namespace Newtonsoft.Json
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Changes the <see cref="State"/> to Closed.
|
||||
/// Changes the reader's state to <see cref="JsonReader.State.Closed"/>.
|
||||
/// If <see cref="JsonReader.CloseInput"/> is set to <c>true</c>, the source is also closed.
|
||||
/// </summary>
|
||||
public virtual void Close()
|
||||
{
|
||||
|
||||
@@ -78,7 +78,7 @@ namespace Newtonsoft.Json
|
||||
/// with a specified error message and a reference to the inner exception that is the cause of this exception.
|
||||
/// </summary>
|
||||
/// <param name="message">The error message that explains the reason for the exception.</param>
|
||||
/// <param name="innerException">The exception that is the cause of the current exception, or a null reference (Nothing in Visual Basic) if no inner exception is specified.</param>
|
||||
/// <param name="innerException">The exception that is the cause of the current exception, or <c>null</c> if no inner exception is specified.</param>
|
||||
public JsonReaderException(string message, Exception innerException)
|
||||
: base(message, innerException)
|
||||
{
|
||||
@@ -88,10 +88,10 @@ namespace Newtonsoft.Json
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="JsonReaderException"/> class.
|
||||
/// </summary>
|
||||
/// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo"/> that holds the serialized object data about the exception being thrown.</param>
|
||||
/// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext"/> that contains contextual information about the source or destination.</param>
|
||||
/// <exception cref="T:System.ArgumentNullException">The <paramref name="info"/> parameter is null. </exception>
|
||||
/// <exception cref="T:System.Runtime.Serialization.SerializationException">The class name is null or <see cref="P:System.Exception.HResult"/> is zero (0). </exception>
|
||||
/// <param name="info">The <see cref="SerializationInfo"/> that holds the serialized object data about the exception being thrown.</param>
|
||||
/// <param name="context">The <see cref="StreamingContext"/> that contains contextual information about the source or destination.</param>
|
||||
/// <exception cref="ArgumentNullException">The <paramref name="info"/> parameter is <c>null</c>.</exception>
|
||||
/// <exception cref="SerializationException">The class name is <c>null</c> or <see cref="Exception.HResult"/> is zero (0).</exception>
|
||||
public JsonReaderException(SerializationInfo info, StreamingContext context)
|
||||
: base(info, context)
|
||||
{
|
||||
|
||||
@@ -60,7 +60,7 @@ namespace Newtonsoft.Json
|
||||
/// with a specified error message and a reference to the inner exception that is the cause of this exception.
|
||||
/// </summary>
|
||||
/// <param name="message">The error message that explains the reason for the exception.</param>
|
||||
/// <param name="innerException">The exception that is the cause of the current exception, or a null reference (Nothing in Visual Basic) if no inner exception is specified.</param>
|
||||
/// <param name="innerException">The exception that is the cause of the current exception, or <c>null</c> if no inner exception is specified.</param>
|
||||
public JsonSerializationException(string message, Exception innerException)
|
||||
: base(message, innerException)
|
||||
{
|
||||
@@ -70,10 +70,10 @@ namespace Newtonsoft.Json
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="JsonSerializationException"/> class.
|
||||
/// </summary>
|
||||
/// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo"/> that holds the serialized object data about the exception being thrown.</param>
|
||||
/// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext"/> that contains contextual information about the source or destination.</param>
|
||||
/// <exception cref="T:System.ArgumentNullException">The <paramref name="info"/> parameter is null. </exception>
|
||||
/// <exception cref="T:System.Runtime.Serialization.SerializationException">The class name is null or <see cref="P:System.Exception.HResult"/> is zero (0). </exception>
|
||||
/// <param name="info">The <see cref="SerializationInfo"/> that holds the serialized object data about the exception being thrown.</param>
|
||||
/// <param name="context">The <see cref="StreamingContext"/> that contains contextual information about the source or destination.</param>
|
||||
/// <exception cref="ArgumentNullException">The <paramref name="info"/> parameter is <c>null</c>.</exception>
|
||||
/// <exception cref="SerializationException">The class name is <c>null</c> or <see cref="Exception.HResult"/> is zero (0).</exception>
|
||||
public JsonSerializationException(SerializationInfo info, StreamingContext context)
|
||||
: base(info, context)
|
||||
{
|
||||
|
||||
@@ -171,9 +171,9 @@ namespace Newtonsoft.Json
|
||||
/// Gets or sets how type name writing and reading is handled by the serializer.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <see cref="TypeNameHandling"/> should be used with caution when your application deserializes JSON from an external source.
|
||||
/// Incoming types should be validated with a custom <see cref="T:System.Runtime.Serialization.SerializationBinder"/>
|
||||
/// when deserializing with a value other than <c>TypeNameHandling.None</c>.
|
||||
/// <see cref="JsonSerializer.TypeNameHandling"/> should be used with caution when your application deserializes JSON from an external source.
|
||||
/// Incoming types should be validated with a custom <see cref="JsonSerializer.SerializationBinder"/>
|
||||
/// when deserializing with a value other than <see cref="TypeNameHandling.None"/>.
|
||||
/// </remarks>
|
||||
public virtual TypeNameHandling TypeNameHandling
|
||||
{
|
||||
@@ -430,7 +430,7 @@ namespace Newtonsoft.Json
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets how date formatted strings, e.g. "\/Date(1198908717056)\/" and "2012-03-21T05:40Z", are parsed when reading JSON.
|
||||
/// Gets or sets how date formatted strings, e.g. <c>"\/Date(1198908717056)\/"</c> and <c>"2012-03-21T05:40Z"</c>, are parsed when reading JSON.
|
||||
/// </summary>
|
||||
public virtual DateParseHandling DateParseHandling
|
||||
{
|
||||
@@ -448,8 +448,8 @@ namespace Newtonsoft.Json
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets how special floating point numbers, e.g. <see cref="F:System.Double.NaN"/>,
|
||||
/// <see cref="F:System.Double.PositiveInfinity"/> and <see cref="F:System.Double.NegativeInfinity"/>,
|
||||
/// Gets or sets how special floating point numbers, e.g. <see cref="Double.NaN"/>,
|
||||
/// <see cref="Double.PositiveInfinity"/> and <see cref="Double.NegativeInfinity"/>,
|
||||
/// are written as JSON text.
|
||||
/// </summary>
|
||||
public virtual FloatFormatHandling FloatFormatHandling
|
||||
@@ -994,7 +994,7 @@ namespace Newtonsoft.Json
|
||||
|
||||
/// <summary>
|
||||
/// Serializes the specified <see cref="Object"/> and writes the JSON structure
|
||||
/// to a <c>Stream</c> using the specified <see cref="TextWriter"/>.
|
||||
/// using the specified <see cref="TextWriter"/>.
|
||||
/// </summary>
|
||||
/// <param name="textWriter">The <see cref="TextWriter"/> used to write the JSON structure.</param>
|
||||
/// <param name="value">The <see cref="Object"/> to serialize.</param>
|
||||
@@ -1005,13 +1005,13 @@ namespace Newtonsoft.Json
|
||||
|
||||
/// <summary>
|
||||
/// Serializes the specified <see cref="Object"/> and writes the JSON structure
|
||||
/// to a <c>Stream</c> using the specified <see cref="TextWriter"/>.
|
||||
/// using the specified <see cref="JsonWriter"/>.
|
||||
/// </summary>
|
||||
/// <param name="jsonWriter">The <see cref="JsonWriter"/> used to write the JSON structure.</param>
|
||||
/// <param name="value">The <see cref="Object"/> to serialize.</param>
|
||||
/// <param name="objectType">
|
||||
/// The type of the value being serialized.
|
||||
/// This parameter is used when <see cref="TypeNameHandling"/> is Auto to write out the type name if the type of the value does not match.
|
||||
/// This parameter is used when <see cref="JsonSerializer.TypeNameHandling"/> is <see cref="TypeNameHandling.Auto"/> to write out the type name if the type of the value does not match.
|
||||
/// Specifing the type is optional.
|
||||
/// </param>
|
||||
public void Serialize(JsonWriter jsonWriter, object value, Type objectType)
|
||||
@@ -1021,7 +1021,7 @@ namespace Newtonsoft.Json
|
||||
|
||||
/// <summary>
|
||||
/// Serializes the specified <see cref="Object"/> and writes the JSON structure
|
||||
/// to a <c>Stream</c> using the specified <see cref="TextWriter"/>.
|
||||
/// using the specified <see cref="TextWriter"/>.
|
||||
/// </summary>
|
||||
/// <param name="textWriter">The <see cref="TextWriter"/> used to write the JSON structure.</param>
|
||||
/// <param name="value">The <see cref="Object"/> to serialize.</param>
|
||||
@@ -1037,7 +1037,7 @@ namespace Newtonsoft.Json
|
||||
|
||||
/// <summary>
|
||||
/// Serializes the specified <see cref="Object"/> and writes the JSON structure
|
||||
/// to a <c>Stream</c> using the specified <see cref="JsonWriter"/>.
|
||||
/// using the specified <see cref="JsonWriter"/>.
|
||||
/// </summary>
|
||||
/// <param name="jsonWriter">The <see cref="JsonWriter"/> used to write the JSON structure.</param>
|
||||
/// <param name="value">The <see cref="Object"/> to serialize.</param>
|
||||
|
||||
@@ -88,7 +88,7 @@ namespace Newtonsoft.Json
|
||||
internal MetadataPropertyHandling? _metadataPropertyHandling;
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets how reference loops (e.g. a class referencing itself) is handled.
|
||||
/// Gets or sets how reference loops (e.g. a class referencing itself) are handled.
|
||||
/// </summary>
|
||||
/// <value>Reference loop handling.</value>
|
||||
public ReferenceLoopHandling ReferenceLoopHandling
|
||||
@@ -157,9 +157,9 @@ namespace Newtonsoft.Json
|
||||
/// Gets or sets how type name writing and reading is handled by the serializer.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <see cref="TypeNameHandling"/> should be used with caution when your application deserializes JSON from an external source.
|
||||
/// Incoming types should be validated with a custom <see cref="T:System.Runtime.Serialization.SerializationBinder"/>
|
||||
/// when deserializing with a value other than <c>TypeNameHandling.None</c>.
|
||||
/// <see cref="JsonSerializerSettings.TypeNameHandling"/> should be used with caution when your application deserializes JSON from an external source.
|
||||
/// Incoming types should be validated with a custom <see cref="JsonSerializerSettings.SerializationBinder"/>
|
||||
/// when deserializing with a value other than <see cref="TypeNameHandling.None"/>.
|
||||
/// </remarks>
|
||||
/// <value>The type name handling.</value>
|
||||
public TypeNameHandling TypeNameHandling
|
||||
@@ -374,8 +374,8 @@ namespace Newtonsoft.Json
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets how special floating point numbers, e.g. <see cref="F:System.Double.NaN"/>,
|
||||
/// <see cref="F:System.Double.PositiveInfinity"/> and <see cref="F:System.Double.NegativeInfinity"/>,
|
||||
/// Gets or sets how special floating point numbers, e.g. <see cref="Double.NaN"/>,
|
||||
/// <see cref="Double.PositiveInfinity"/> and <see cref="Double.NegativeInfinity"/>,
|
||||
/// are written as JSON.
|
||||
/// </summary>
|
||||
public FloatFormatHandling FloatFormatHandling
|
||||
|
||||
@@ -75,7 +75,7 @@ namespace Newtonsoft.Json
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="JsonTextReader"/> class with the specified <see cref="TextReader"/>.
|
||||
/// </summary>
|
||||
/// <param name="reader">The <c>TextReader</c> containing the XML data to read.</param>
|
||||
/// <param name="reader">The <see cref="TextReader"/> containing the JSON data to read.</param>
|
||||
public JsonTextReader(TextReader reader)
|
||||
{
|
||||
if (reader == null)
|
||||
@@ -359,7 +359,7 @@ namespace Newtonsoft.Json
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Reads the next JSON token from the stream.
|
||||
/// Reads the next JSON token from the underlying <see cref="TextReader"/>.
|
||||
/// </summary>
|
||||
/// <returns>
|
||||
/// <c>true</c> if the next token was read successfully; <c>false</c> if there are no more tokens to read.
|
||||
@@ -416,25 +416,25 @@ namespace Newtonsoft.Json
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Reads the next JSON token from the stream as a <see cref="Nullable{Int32}"/>.
|
||||
/// Reads the next JSON token from the underlying <see cref="TextReader"/> as a <see cref="Nullable{T}"/> of <see cref="Int32"/>.
|
||||
/// </summary>
|
||||
/// <returns>A <see cref="Nullable{Int32}"/>. This method will return <c>null</c> at the end of an array.</returns>
|
||||
/// <returns>A <see cref="Nullable{T}"/> of <see cref="Int32"/>. This method will return <c>null</c> at the end of an array.</returns>
|
||||
public override int? ReadAsInt32()
|
||||
{
|
||||
return (int?)ReadNumberValue(ReadType.ReadAsInt32);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Reads the next JSON token from the stream as a <see cref="Nullable{DateTime}"/>.
|
||||
/// Reads the next JSON token from the underlying <see cref="TextReader"/> as a <see cref="Nullable{T}"/> of <see cref="DateTime"/>.
|
||||
/// </summary>
|
||||
/// <returns>A <see cref="Nullable{DateTime}"/>. This method will return <c>null</c> at the end of an array.</returns>
|
||||
/// <returns>A <see cref="Nullable{T}"/> of <see cref="DateTime"/>. This method will return <c>null</c> at the end of an array.</returns>
|
||||
public override DateTime? ReadAsDateTime()
|
||||
{
|
||||
return (DateTime?)ReadStringValue(ReadType.ReadAsDateTime);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Reads the next JSON token from the stream as a <see cref="String"/>.
|
||||
/// Reads the next JSON token from the underlying <see cref="TextReader"/> as a <see cref="String"/>.
|
||||
/// </summary>
|
||||
/// <returns>A <see cref="String"/>. This method will return <c>null</c> at the end of an array.</returns>
|
||||
public override string ReadAsString()
|
||||
@@ -443,9 +443,9 @@ namespace Newtonsoft.Json
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Reads the next JSON token from the stream as a <see cref="Byte"/>[].
|
||||
/// Reads the next JSON token from the underlying <see cref="TextReader"/> as a <see cref="Byte"/>[].
|
||||
/// </summary>
|
||||
/// <returns>A <see cref="Byte"/>[] or a null reference if the next JSON token is null. This method will return <c>null</c> at the end of an array.</returns>
|
||||
/// <returns>A <see cref="Byte"/>[] or <c>null</c> if the next JSON token is null. This method will return <c>null</c> at the end of an array.</returns>
|
||||
public override byte[] ReadAsBytes()
|
||||
{
|
||||
EnsureBuffer();
|
||||
@@ -697,9 +697,9 @@ namespace Newtonsoft.Json
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Reads the next JSON token from the stream as a <see cref="Nullable{Boolean}"/>.
|
||||
/// Reads the next JSON token from the underlying <see cref="TextReader"/> as a <see cref="Nullable{T}"/> of <see cref="Boolean"/>.
|
||||
/// </summary>
|
||||
/// <returns>A <see cref="Nullable{Boolean}"/>. This method will return <c>null</c> at the end of an array.</returns>
|
||||
/// <returns>A <see cref="Nullable{T}"/> of <see cref="Boolean"/>. This method will return <c>null</c> at the end of an array.</returns>
|
||||
public override bool? ReadAsBoolean()
|
||||
{
|
||||
EnsureBuffer();
|
||||
@@ -945,9 +945,9 @@ namespace Newtonsoft.Json
|
||||
|
||||
#if !NET20
|
||||
/// <summary>
|
||||
/// Reads the next JSON token from the stream as a <see cref="Nullable{DateTimeOffset}"/>.
|
||||
/// Reads the next JSON token from the underlying <see cref="TextReader"/> as a <see cref="Nullable{T}"/> of <see cref="DateTimeOffset"/>.
|
||||
/// </summary>
|
||||
/// <returns>A <see cref="Nullable{DateTimeOffset}"/>. This method will return <c>null</c> at the end of an array.</returns>
|
||||
/// <returns>A <see cref="Nullable{T}"/> of <see cref="DateTimeOffset"/>. This method will return <c>null</c> at the end of an array.</returns>
|
||||
public override DateTimeOffset? ReadAsDateTimeOffset()
|
||||
{
|
||||
return (DateTimeOffset?)ReadStringValue(ReadType.ReadAsDateTimeOffset);
|
||||
@@ -955,18 +955,18 @@ namespace Newtonsoft.Json
|
||||
#endif
|
||||
|
||||
/// <summary>
|
||||
/// Reads the next JSON token from the stream as a <see cref="Nullable{Decimal}"/>.
|
||||
/// Reads the next JSON token from the underlying <see cref="TextReader"/> as a <see cref="Nullable{T}"/> of <see cref="Decimal"/>.
|
||||
/// </summary>
|
||||
/// <returns>A <see cref="Nullable{Decimal}"/>. This method will return <c>null</c> at the end of an array.</returns>
|
||||
/// <returns>A <see cref="Nullable{T}"/> of <see cref="Decimal"/>. This method will return <c>null</c> at the end of an array.</returns>
|
||||
public override decimal? ReadAsDecimal()
|
||||
{
|
||||
return (decimal?)ReadNumberValue(ReadType.ReadAsDecimal);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Reads the next JSON token from the stream as a <see cref="Nullable{Double}"/>.
|
||||
/// Reads the next JSON token from the underlying <see cref="TextReader"/> as a <see cref="Nullable{T}"/> of <see cref="Double"/>.
|
||||
/// </summary>
|
||||
/// <returns>A <see cref="Nullable{Double}"/>. This method will return <c>null</c> at the end of an array.</returns>
|
||||
/// <returns>A <see cref="Nullable{T}"/> of <see cref="Double"/>. This method will return <c>null</c> at the end of an array.</returns>
|
||||
public override double? ReadAsDouble()
|
||||
{
|
||||
return (double?)ReadNumberValue(ReadType.ReadAsDouble);
|
||||
@@ -2401,7 +2401,8 @@ namespace Newtonsoft.Json
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Changes the state to Closed.
|
||||
/// Changes the reader's state to <see cref="JsonReader.State.Closed"/>.
|
||||
/// If <see cref="JsonReader.CloseInput"/> is set to <c>true</c>, the underlying <see cref="TextReader"/> is also closed.
|
||||
/// </summary>
|
||||
public override void Close()
|
||||
{
|
||||
@@ -2429,7 +2430,7 @@ namespace Newtonsoft.Json
|
||||
/// Gets a value indicating whether the class can return line information.
|
||||
/// </summary>
|
||||
/// <returns>
|
||||
/// <c>true</c> if LineNumber and LinePosition can be provided; otherwise, <c>false</c>.
|
||||
/// <c>true</c> if <see cref="JsonTextReader.LineNumber"/> and <see cref="JsonTextReader.LinePosition"/> can be provided; otherwise, <c>false</c>.
|
||||
/// </returns>
|
||||
public bool HasLineInfo()
|
||||
{
|
||||
@@ -2440,7 +2441,7 @@ namespace Newtonsoft.Json
|
||||
/// Gets the current line number.
|
||||
/// </summary>
|
||||
/// <value>
|
||||
/// The current line number or 0 if no line information is available (for example, HasLineInfo returns false).
|
||||
/// The current line number or 0 if no line information is available (for example, <see cref="JsonTextReader.HasLineInfo"/> returns <c>false</c>).
|
||||
/// </value>
|
||||
public int LineNumber
|
||||
{
|
||||
@@ -2459,7 +2460,7 @@ namespace Newtonsoft.Json
|
||||
/// Gets the current line position.
|
||||
/// </summary>
|
||||
/// <value>
|
||||
/// The current line position or 0 if no line information is available (for example, HasLineInfo returns false).
|
||||
/// The current line position or 0 if no line information is available (for example, <see cref="JsonTextReader.HasLineInfo"/> returns <c>false</c>).
|
||||
/// </value>
|
||||
public int LinePosition
|
||||
{
|
||||
|
||||
@@ -83,7 +83,7 @@ namespace Newtonsoft.Json
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets how many IndentChars to write for each level in the hierarchy when <see cref="Formatting"/> is set to <c>Formatting.Indented</c>.
|
||||
/// Gets or sets how many <see cref="JsonTextWriter.IndentChar"/>s to write for each level in the hierarchy when <see cref="JsonWriter.Formatting"/> is set to <see cref="Formatting.Indented"/>.
|
||||
/// </summary>
|
||||
public int Indentation
|
||||
{
|
||||
@@ -118,7 +118,7 @@ namespace Newtonsoft.Json
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets which character to use for indenting when <see cref="Formatting"/> is set to <c>Formatting.Indented</c>.
|
||||
/// Gets or sets which character to use for indenting when <see cref="JsonWriter.Formatting"/> is set to <see cref="Formatting.Indented"/>.
|
||||
/// </summary>
|
||||
public char IndentChar
|
||||
{
|
||||
@@ -143,9 +143,9 @@ namespace Newtonsoft.Json
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Creates an instance of the <c>JsonTextWriter</c> class using the specified <see cref="TextWriter"/>.
|
||||
/// Initializes a new instance of the <see cref="JsonTextWriter"/> class using the specified <see cref="TextWriter"/>.
|
||||
/// </summary>
|
||||
/// <param name="textWriter">The <c>TextWriter</c> to write to.</param>
|
||||
/// <param name="textWriter">The <see cref="TextWriter"/> to write to.</param>
|
||||
public JsonTextWriter(TextWriter textWriter)
|
||||
{
|
||||
if (textWriter == null)
|
||||
@@ -163,7 +163,7 @@ namespace Newtonsoft.Json
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Flushes whatever is in the buffer to the underlying streams and also flushes the underlying stream.
|
||||
/// Flushes whatever is in the buffer to the underlying <see cref="TextWriter"/> and also flushes the underlying <see cref="TextWriter"/>.
|
||||
/// </summary>
|
||||
public override void Flush()
|
||||
{
|
||||
@@ -171,7 +171,8 @@ namespace Newtonsoft.Json
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Closes this stream and the underlying stream.
|
||||
/// Closes this writer.
|
||||
/// If <see cref="JsonWriter.CloseOutput"/> is set to <c>true</c>, the underlying <see cref="TextWriter"/> is also closed.
|
||||
/// </summary>
|
||||
public override void Close()
|
||||
{
|
||||
@@ -478,9 +479,9 @@ namespace Newtonsoft.Json
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Writes a <see cref="Nullable{Single}"/> value.
|
||||
/// Writes a <see cref="Nullable{T}"/> of <see cref="Single"/> value.
|
||||
/// </summary>
|
||||
/// <param name="value">The <see cref="Nullable{Single}"/> value to write.</param>
|
||||
/// <param name="value">The <see cref="Nullable{T}"/> of <see cref="Single"/> value to write.</param>
|
||||
public override void WriteValue(float? value)
|
||||
{
|
||||
if (value == null)
|
||||
@@ -505,9 +506,9 @@ namespace Newtonsoft.Json
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Writes a <see cref="Nullable{Double}"/> value.
|
||||
/// Writes a <see cref="Nullable{T}"/> of <see cref="Double"/> value.
|
||||
/// </summary>
|
||||
/// <param name="value">The <see cref="Nullable{Double}"/> value to write.</param>
|
||||
/// <param name="value">The <see cref="Nullable{T}"/> of <see cref="Double"/> value to write.</param>
|
||||
public override void WriteValue(double? value)
|
||||
{
|
||||
if (value == null)
|
||||
|
||||
@@ -35,7 +35,7 @@ namespace Newtonsoft.Json
|
||||
public enum JsonToken
|
||||
{
|
||||
/// <summary>
|
||||
/// This is returned by the <see cref="JsonReader"/> if a <see cref="JsonReader.Read"/> method has not been called.
|
||||
/// This is returned by the <see cref="JsonReader"/> if a read method has not been called.
|
||||
/// </summary>
|
||||
None = 0,
|
||||
|
||||
|
||||
@@ -392,9 +392,9 @@ namespace Newtonsoft.Json
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Reads the next JSON token from the stream as a <see cref="Nullable{Int32}"/>.
|
||||
/// Reads the next JSON token from the underlying <see cref="JsonReader"/> as a <see cref="Nullable{T}"/> of <see cref="Int32"/>.
|
||||
/// </summary>
|
||||
/// <returns>A <see cref="Nullable{Int32}"/>.</returns>
|
||||
/// <returns>A <see cref="Nullable{T}"/> of <see cref="Int32"/>.</returns>
|
||||
public override int? ReadAsInt32()
|
||||
{
|
||||
int? i = _reader.ReadAsInt32();
|
||||
@@ -404,10 +404,10 @@ namespace Newtonsoft.Json
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Reads the next JSON token from the stream as a <see cref="Byte"/>[].
|
||||
/// Reads the next JSON token from the underlying <see cref="JsonReader"/> as a <see cref="Byte"/>[].
|
||||
/// </summary>
|
||||
/// <returns>
|
||||
/// A <see cref="Byte"/>[] or a null reference if the next JSON token is null.
|
||||
/// A <see cref="Byte"/>[] or <c>null</c> if the next JSON token is null.
|
||||
/// </returns>
|
||||
public override byte[] ReadAsBytes()
|
||||
{
|
||||
@@ -418,9 +418,9 @@ namespace Newtonsoft.Json
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Reads the next JSON token from the stream as a <see cref="Nullable{Decimal}"/>.
|
||||
/// Reads the next JSON token from the underlying <see cref="JsonReader"/> as a <see cref="Nullable{T}"/> of <see cref="Decimal"/>.
|
||||
/// </summary>
|
||||
/// <returns>A <see cref="Nullable{Decimal}"/>.</returns>
|
||||
/// <returns>A <see cref="Nullable{T}"/> of <see cref="Decimal"/>.</returns>
|
||||
public override decimal? ReadAsDecimal()
|
||||
{
|
||||
decimal? d = _reader.ReadAsDecimal();
|
||||
@@ -430,9 +430,9 @@ namespace Newtonsoft.Json
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Reads the next JSON token from the stream as a <see cref="Nullable{Double}"/>.
|
||||
/// Reads the next JSON token from the underlying <see cref="JsonReader"/> as a <see cref="Nullable{T}"/> of <see cref="Double"/>.
|
||||
/// </summary>
|
||||
/// <returns>A <see cref="Nullable{Double}"/>.</returns>
|
||||
/// <returns>A <see cref="Nullable{T}"/> of <see cref="Double"/>.</returns>
|
||||
public override double? ReadAsDouble()
|
||||
{
|
||||
double? d = _reader.ReadAsDouble();
|
||||
@@ -442,9 +442,9 @@ namespace Newtonsoft.Json
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Reads the next JSON token from the stream as a <see cref="Nullable{Boolean}"/>.
|
||||
/// Reads the next JSON token from the underlying <see cref="JsonReader"/> as a <see cref="Nullable{T}"/> of <see cref="Boolean"/>.
|
||||
/// </summary>
|
||||
/// <returns>A <see cref="Nullable{Boolean}"/>.</returns>
|
||||
/// <returns>A <see cref="Nullable{T}"/> of <see cref="Boolean"/>.</returns>
|
||||
public override bool? ReadAsBoolean()
|
||||
{
|
||||
bool? b = _reader.ReadAsBoolean();
|
||||
@@ -454,7 +454,7 @@ namespace Newtonsoft.Json
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Reads the next JSON token from the stream as a <see cref="String"/>.
|
||||
/// Reads the next JSON token from the underlying <see cref="JsonReader"/> as a <see cref="String"/>.
|
||||
/// </summary>
|
||||
/// <returns>A <see cref="String"/>. This method will return <c>null</c> at the end of an array.</returns>
|
||||
public override string ReadAsString()
|
||||
@@ -466,9 +466,9 @@ namespace Newtonsoft.Json
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Reads the next JSON token from the stream as a <see cref="Nullable{DateTime}"/>.
|
||||
/// Reads the next JSON token from the underlying <see cref="JsonReader"/> as a <see cref="Nullable{T}"/> of <see cref="DateTime"/>.
|
||||
/// </summary>
|
||||
/// <returns>A <see cref="Nullable{DateTime}"/>. This method will return <c>null</c> at the end of an array.</returns>
|
||||
/// <returns>A <see cref="Nullable{T}"/> of <see cref="DateTime"/>. This method will return <c>null</c> at the end of an array.</returns>
|
||||
public override DateTime? ReadAsDateTime()
|
||||
{
|
||||
DateTime? dateTime = _reader.ReadAsDateTime();
|
||||
@@ -479,9 +479,9 @@ namespace Newtonsoft.Json
|
||||
|
||||
#if !NET20
|
||||
/// <summary>
|
||||
/// Reads the next JSON token from the stream as a <see cref="Nullable{DateTimeOffset}"/>.
|
||||
/// Reads the next JSON token from the underlying <see cref="JsonReader"/> as a <see cref="Nullable{T}"/> of <see cref="DateTimeOffset"/>.
|
||||
/// </summary>
|
||||
/// <returns>A <see cref="Nullable{DateTimeOffset}"/>.</returns>
|
||||
/// <returns>A <see cref="Nullable{T}"/> of <see cref="DateTimeOffset"/>.</returns>
|
||||
public override DateTimeOffset? ReadAsDateTimeOffset()
|
||||
{
|
||||
DateTimeOffset? dateTimeOffset = _reader.ReadAsDateTimeOffset();
|
||||
@@ -492,7 +492,7 @@ namespace Newtonsoft.Json
|
||||
#endif
|
||||
|
||||
/// <summary>
|
||||
/// Reads the next JSON token from the stream.
|
||||
/// Reads the next JSON token from the underlying <see cref="JsonReader"/>.
|
||||
/// </summary>
|
||||
/// <returns>
|
||||
/// <c>true</c> if the next token was read successfully; <c>false</c> if there are no more tokens to read.
|
||||
|
||||
@@ -119,12 +119,10 @@ namespace Newtonsoft.Json
|
||||
private Formatting _formatting;
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets a value indicating whether the underlying stream or
|
||||
/// <see cref="TextReader"/> should be closed when the writer is closed.
|
||||
/// Gets or sets a value indicating whether the destination should be closed when this writer is closed.
|
||||
/// </summary>
|
||||
/// <value>
|
||||
/// <c>true</c> to close the underlying stream or <see cref="TextReader"/> when
|
||||
/// the writer is closed; otherwise <c>false</c>. The default is <c>true</c>.
|
||||
/// <c>true</c> to close the destination when this writer is closed; otherwise <c>false</c>. The default is <c>true</c>.
|
||||
/// </value>
|
||||
public bool CloseOutput { get; set; }
|
||||
|
||||
@@ -295,8 +293,8 @@ namespace Newtonsoft.Json
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets how special floating point numbers, e.g. <see cref="F:System.Double.NaN"/>,
|
||||
/// <see cref="F:System.Double.PositiveInfinity"/> and <see cref="F:System.Double.NegativeInfinity"/>,
|
||||
/// Gets or sets how special floating point numbers, e.g. <see cref="Double.NaN"/>,
|
||||
/// <see cref="Double.PositiveInfinity"/> and <see cref="Double.NegativeInfinity"/>,
|
||||
/// are written to JSON text.
|
||||
/// </summary>
|
||||
public FloatFormatHandling FloatFormatHandling
|
||||
@@ -389,12 +387,13 @@ namespace Newtonsoft.Json
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Flushes whatever is in the buffer to the underlying streams and also flushes the underlying stream.
|
||||
/// Flushes whatever is in the buffer to the destination and also flushes the destination.
|
||||
/// </summary>
|
||||
public abstract void Flush();
|
||||
|
||||
/// <summary>
|
||||
/// Closes this stream and the underlying stream.
|
||||
/// Closes this writer.
|
||||
/// If <see cref="JsonWriter.CloseOutput"/> is set to <c>true</c>, the destination is also closed.
|
||||
/// </summary>
|
||||
public virtual void Close()
|
||||
{
|
||||
@@ -505,7 +504,8 @@ namespace Newtonsoft.Json
|
||||
/// <param name="value">
|
||||
/// The value to write.
|
||||
/// A value is only required for tokens that have an associated value, e.g. the <see cref="String"/> property name for <see cref="JsonToken.PropertyName"/>.
|
||||
/// A null value can be passed to the method for token's that don't have a value, e.g. <see cref="JsonToken.StartObject"/>.</param>
|
||||
/// <c>null</c> can be passed to the method for tokens that don't have a value, e.g. <see cref="JsonToken.StartObject"/>.
|
||||
/// </param>
|
||||
public void WriteToken(JsonToken token, object value)
|
||||
{
|
||||
switch (token)
|
||||
@@ -1070,9 +1070,9 @@ namespace Newtonsoft.Json
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Writes a <see cref="Nullable{Int32}"/> value.
|
||||
/// Writes a <see cref="Nullable{T}"/> of <see cref="Int32"/> value.
|
||||
/// </summary>
|
||||
/// <param name="value">The <see cref="Nullable{Int32}"/> value to write.</param>
|
||||
/// <param name="value">The <see cref="Nullable{T}"/> of <see cref="Int32"/> value to write.</param>
|
||||
public virtual void WriteValue(int? value)
|
||||
{
|
||||
if (value == null)
|
||||
@@ -1086,9 +1086,9 @@ namespace Newtonsoft.Json
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Writes a <see cref="Nullable{UInt32}"/> value.
|
||||
/// Writes a <see cref="Nullable{T}"/> of <see cref="UInt32"/> value.
|
||||
/// </summary>
|
||||
/// <param name="value">The <see cref="Nullable{UInt32}"/> value to write.</param>
|
||||
/// <param name="value">The <see cref="Nullable{T}"/> of <see cref="UInt32"/> value to write.</param>
|
||||
[CLSCompliant(false)]
|
||||
public virtual void WriteValue(uint? value)
|
||||
{
|
||||
@@ -1103,9 +1103,9 @@ namespace Newtonsoft.Json
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Writes a <see cref="Nullable{Int64}"/> value.
|
||||
/// Writes a <see cref="Nullable{T}"/> of <see cref="Int64"/> value.
|
||||
/// </summary>
|
||||
/// <param name="value">The <see cref="Nullable{Int64}"/> value to write.</param>
|
||||
/// <param name="value">The <see cref="Nullable{T}"/> of <see cref="Int64"/> value to write.</param>
|
||||
public virtual void WriteValue(long? value)
|
||||
{
|
||||
if (value == null)
|
||||
@@ -1119,9 +1119,9 @@ namespace Newtonsoft.Json
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Writes a <see cref="Nullable{UInt64}"/> value.
|
||||
/// Writes a <see cref="Nullable{T}"/> of <see cref="UInt64"/> value.
|
||||
/// </summary>
|
||||
/// <param name="value">The <see cref="Nullable{UInt64}"/> value to write.</param>
|
||||
/// <param name="value">The <see cref="Nullable{T}"/> of <see cref="UInt64"/> value to write.</param>
|
||||
[CLSCompliant(false)]
|
||||
public virtual void WriteValue(ulong? value)
|
||||
{
|
||||
@@ -1136,9 +1136,9 @@ namespace Newtonsoft.Json
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Writes a <see cref="Nullable{Single}"/> value.
|
||||
/// Writes a <see cref="Nullable{T}"/> of <see cref="Single"/> value.
|
||||
/// </summary>
|
||||
/// <param name="value">The <see cref="Nullable{Single}"/> value to write.</param>
|
||||
/// <param name="value">The <see cref="Nullable{T}"/> of <see cref="Single"/> value to write.</param>
|
||||
public virtual void WriteValue(float? value)
|
||||
{
|
||||
if (value == null)
|
||||
@@ -1152,9 +1152,9 @@ namespace Newtonsoft.Json
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Writes a <see cref="Nullable{Double}"/> value.
|
||||
/// Writes a <see cref="Nullable{T}"/> of <see cref="Double"/> value.
|
||||
/// </summary>
|
||||
/// <param name="value">The <see cref="Nullable{Double}"/> value to write.</param>
|
||||
/// <param name="value">The <see cref="Nullable{T}"/> of <see cref="Double"/> value to write.</param>
|
||||
public virtual void WriteValue(double? value)
|
||||
{
|
||||
if (value == null)
|
||||
@@ -1168,9 +1168,9 @@ namespace Newtonsoft.Json
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Writes a <see cref="Nullable{Boolean}"/> value.
|
||||
/// Writes a <see cref="Nullable{T}"/> of <see cref="Boolean"/> value.
|
||||
/// </summary>
|
||||
/// <param name="value">The <see cref="Nullable{Boolean}"/> value to write.</param>
|
||||
/// <param name="value">The <see cref="Nullable{T}"/> of <see cref="Boolean"/> value to write.</param>
|
||||
public virtual void WriteValue(bool? value)
|
||||
{
|
||||
if (value == null)
|
||||
@@ -1184,9 +1184,9 @@ namespace Newtonsoft.Json
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Writes a <see cref="Nullable{Int16}"/> value.
|
||||
/// Writes a <see cref="Nullable{T}"/> of <see cref="Int16"/> value.
|
||||
/// </summary>
|
||||
/// <param name="value">The <see cref="Nullable{Int16}"/> value to write.</param>
|
||||
/// <param name="value">The <see cref="Nullable{T}"/> of <see cref="Int16"/> value to write.</param>
|
||||
public virtual void WriteValue(short? value)
|
||||
{
|
||||
if (value == null)
|
||||
@@ -1200,9 +1200,9 @@ namespace Newtonsoft.Json
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Writes a <see cref="Nullable{UInt16}"/> value.
|
||||
/// Writes a <see cref="Nullable{T}"/> of <see cref="UInt16"/> value.
|
||||
/// </summary>
|
||||
/// <param name="value">The <see cref="Nullable{UInt16}"/> value to write.</param>
|
||||
/// <param name="value">The <see cref="Nullable{T}"/> of <see cref="UInt16"/> value to write.</param>
|
||||
[CLSCompliant(false)]
|
||||
public virtual void WriteValue(ushort? value)
|
||||
{
|
||||
@@ -1217,9 +1217,9 @@ namespace Newtonsoft.Json
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Writes a <see cref="Nullable{Char}"/> value.
|
||||
/// Writes a <see cref="Nullable{T}"/> of <see cref="Char"/> value.
|
||||
/// </summary>
|
||||
/// <param name="value">The <see cref="Nullable{Char}"/> value to write.</param>
|
||||
/// <param name="value">The <see cref="Nullable{T}"/> of <see cref="Char"/> value to write.</param>
|
||||
public virtual void WriteValue(char? value)
|
||||
{
|
||||
if (value == null)
|
||||
@@ -1233,9 +1233,9 @@ namespace Newtonsoft.Json
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Writes a <see cref="Nullable{Byte}"/> value.
|
||||
/// Writes a <see cref="Nullable{T}"/> of <see cref="Byte"/> value.
|
||||
/// </summary>
|
||||
/// <param name="value">The <see cref="Nullable{Byte}"/> value to write.</param>
|
||||
/// <param name="value">The <see cref="Nullable{T}"/> of <see cref="Byte"/> value to write.</param>
|
||||
public virtual void WriteValue(byte? value)
|
||||
{
|
||||
if (value == null)
|
||||
@@ -1249,9 +1249,9 @@ namespace Newtonsoft.Json
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Writes a <see cref="Nullable{SByte}"/> value.
|
||||
/// Writes a <see cref="Nullable{T}"/> of <see cref="SByte"/> value.
|
||||
/// </summary>
|
||||
/// <param name="value">The <see cref="Nullable{SByte}"/> value to write.</param>
|
||||
/// <param name="value">The <see cref="Nullable{T}"/> of <see cref="SByte"/> value to write.</param>
|
||||
[CLSCompliant(false)]
|
||||
public virtual void WriteValue(sbyte? value)
|
||||
{
|
||||
@@ -1266,9 +1266,9 @@ namespace Newtonsoft.Json
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Writes a <see cref="Nullable{Decimal}"/> value.
|
||||
/// Writes a <see cref="Nullable{T}"/> of <see cref="Decimal"/> value.
|
||||
/// </summary>
|
||||
/// <param name="value">The <see cref="Nullable{Decimal}"/> value to write.</param>
|
||||
/// <param name="value">The <see cref="Nullable{T}"/> of <see cref="Decimal"/> value to write.</param>
|
||||
public virtual void WriteValue(decimal? value)
|
||||
{
|
||||
if (value == null)
|
||||
@@ -1282,9 +1282,9 @@ namespace Newtonsoft.Json
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Writes a <see cref="Nullable{DateTime}"/> value.
|
||||
/// Writes a <see cref="Nullable{T}"/> of <see cref="DateTime"/> value.
|
||||
/// </summary>
|
||||
/// <param name="value">The <see cref="Nullable{DateTime}"/> value to write.</param>
|
||||
/// <param name="value">The <see cref="Nullable{T}"/> of <see cref="DateTime"/> value to write.</param>
|
||||
public virtual void WriteValue(DateTime? value)
|
||||
{
|
||||
if (value == null)
|
||||
@@ -1299,9 +1299,9 @@ namespace Newtonsoft.Json
|
||||
|
||||
#if !NET20
|
||||
/// <summary>
|
||||
/// Writes a <see cref="Nullable{DateTimeOffset}"/> value.
|
||||
/// Writes a <see cref="Nullable{T}"/> of <see cref="DateTimeOffset"/> value.
|
||||
/// </summary>
|
||||
/// <param name="value">The <see cref="Nullable{DateTimeOffset}"/> value to write.</param>
|
||||
/// <param name="value">The <see cref="Nullable{T}"/> of <see cref="DateTimeOffset"/> value to write.</param>
|
||||
public virtual void WriteValue(DateTimeOffset? value)
|
||||
{
|
||||
if (value == null)
|
||||
@@ -1316,9 +1316,9 @@ namespace Newtonsoft.Json
|
||||
#endif
|
||||
|
||||
/// <summary>
|
||||
/// Writes a <see cref="Nullable{Guid}"/> value.
|
||||
/// Writes a <see cref="Nullable{T}"/> of <see cref="Guid"/> value.
|
||||
/// </summary>
|
||||
/// <param name="value">The <see cref="Nullable{Guid}"/> value to write.</param>
|
||||
/// <param name="value">The <see cref="Nullable{T}"/> of <see cref="Guid"/> value to write.</param>
|
||||
public virtual void WriteValue(Guid? value)
|
||||
{
|
||||
if (value == null)
|
||||
@@ -1332,9 +1332,9 @@ namespace Newtonsoft.Json
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Writes a <see cref="Nullable{TimeSpan}"/> value.
|
||||
/// Writes a <see cref="Nullable{T}"/> of <see cref="TimeSpan"/> value.
|
||||
/// </summary>
|
||||
/// <param name="value">The <see cref="Nullable{TimeSpan}"/> value to write.</param>
|
||||
/// <param name="value">The <see cref="Nullable{T}"/> of <see cref="TimeSpan"/> value to write.</param>
|
||||
public virtual void WriteValue(TimeSpan? value)
|
||||
{
|
||||
if (value == null)
|
||||
@@ -1607,9 +1607,9 @@ namespace Newtonsoft.Json
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Sets the state of the JsonWriter.
|
||||
/// Sets the state of the <see cref="JsonWriter"/>.
|
||||
/// </summary>
|
||||
/// <param name="token">The JsonToken being written.</param>
|
||||
/// <param name="token">The <see cref="JsonToken"/> being written.</param>
|
||||
/// <param name="value">The value being written.</param>
|
||||
protected void SetWriteState(JsonToken token, object value)
|
||||
{
|
||||
|
||||
@@ -66,7 +66,7 @@ namespace Newtonsoft.Json
|
||||
/// with a specified error message and a reference to the inner exception that is the cause of this exception.
|
||||
/// </summary>
|
||||
/// <param name="message">The error message that explains the reason for the exception.</param>
|
||||
/// <param name="innerException">The exception that is the cause of the current exception, or a null reference (Nothing in Visual Basic) if no inner exception is specified.</param>
|
||||
/// <param name="innerException">The exception that is the cause of the current exception, or <c>null</c> if no inner exception is specified.</param>
|
||||
public JsonWriterException(string message, Exception innerException)
|
||||
: base(message, innerException)
|
||||
{
|
||||
@@ -76,10 +76,10 @@ namespace Newtonsoft.Json
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="JsonWriterException"/> class.
|
||||
/// </summary>
|
||||
/// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo"/> that holds the serialized object data about the exception being thrown.</param>
|
||||
/// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext"/> that contains contextual information about the source or destination.</param>
|
||||
/// <exception cref="T:System.ArgumentNullException">The <paramref name="info"/> parameter is null. </exception>
|
||||
/// <exception cref="T:System.Runtime.Serialization.SerializationException">The class name is null or <see cref="P:System.Exception.HResult"/> is zero (0). </exception>
|
||||
/// <param name="info">The <see cref="SerializationInfo"/> that holds the serialized object data about the exception being thrown.</param>
|
||||
/// <param name="context">The <see cref="StreamingContext"/> that contains contextual information about the source or destination.</param>
|
||||
/// <exception cref="ArgumentNullException">The <paramref name="info"/> parameter is <c>null</c>.</exception>
|
||||
/// <exception cref="SerializationException">The class name is <c>null</c> or <see cref="Exception.HResult"/> is zero (0).</exception>
|
||||
public JsonWriterException(SerializationInfo info, StreamingContext context)
|
||||
: base(info, context)
|
||||
{
|
||||
|
||||
@@ -30,7 +30,7 @@ namespace Newtonsoft.Json.Linq
|
||||
/// <summary>
|
||||
/// Represents a collection of <see cref="JToken"/> objects.
|
||||
/// </summary>
|
||||
/// <typeparam name="T">The type of token</typeparam>
|
||||
/// <typeparam name="T">The type of token.</typeparam>
|
||||
public interface IJEnumerable<
|
||||
#if !(NET20 || NET35)
|
||||
out
|
||||
@@ -38,7 +38,7 @@ namespace Newtonsoft.Json.Linq
|
||||
T> : IEnumerable<T> where T : JToken
|
||||
{
|
||||
/// <summary>
|
||||
/// Gets the <see cref="IJEnumerable{JToken}"/> with the specified key.
|
||||
/// Gets the <see cref="IJEnumerable{T}"/> of <see cref="JToken"/> with the specified key.
|
||||
/// </summary>
|
||||
/// <value></value>
|
||||
IJEnumerable<JToken> this[object key] { get; }
|
||||
|
||||
@@ -120,7 +120,7 @@ namespace Newtonsoft.Json.Linq
|
||||
/// </summary>
|
||||
/// <param name="reader">A <see cref="JsonReader"/> that will be read for the content of the <see cref="JArray"/>.</param>
|
||||
/// <param name="settings">The <see cref="JsonLoadSettings"/> used to load the JSON.
|
||||
/// If this is null, default load settings will be used.</param>
|
||||
/// If this is <c>null</c>, default load settings will be used.</param>
|
||||
/// <returns>A <see cref="JArray"/> that contains the JSON that was read from the specified <see cref="JsonReader"/>.</returns>
|
||||
public new static JArray Load(JsonReader reader, JsonLoadSettings settings)
|
||||
{
|
||||
@@ -165,7 +165,7 @@ namespace Newtonsoft.Json.Linq
|
||||
/// </summary>
|
||||
/// <param name="json">A <see cref="String"/> that contains JSON.</param>
|
||||
/// <param name="settings">The <see cref="JsonLoadSettings"/> used to load the JSON.
|
||||
/// If this is null, default load settings will be used.</param>
|
||||
/// If this is <c>null</c>, default load settings will be used.</param>
|
||||
/// <returns>A <see cref="JArray"/> populated from the string that contains JSON.</returns>
|
||||
/// <example>
|
||||
/// <code lang="cs" source="..\Src\Newtonsoft.Json.Tests\Documentation\LinqToJsonTests.cs" region="LinqToJsonCreateParseArray" title="Parsing a JSON Array from Text" />
|
||||
@@ -189,7 +189,7 @@ namespace Newtonsoft.Json.Linq
|
||||
/// Creates a <see cref="JArray"/> from an object.
|
||||
/// </summary>
|
||||
/// <param name="o">The object that will be used to create <see cref="JArray"/>.</param>
|
||||
/// <returns>A <see cref="JArray"/> with the values of the specified object</returns>
|
||||
/// <returns>A <see cref="JArray"/> with the values of the specified object.</returns>
|
||||
public new static JArray FromObject(object o)
|
||||
{
|
||||
return FromObject(o, JsonSerializer.CreateDefault());
|
||||
@@ -200,7 +200,7 @@ namespace Newtonsoft.Json.Linq
|
||||
/// </summary>
|
||||
/// <param name="o">The object that will be used to create <see cref="JArray"/>.</param>
|
||||
/// <param name="jsonSerializer">The <see cref="JsonSerializer"/> that will be used to read the object.</param>
|
||||
/// <returns>A <see cref="JArray"/> with the values of the specified object</returns>
|
||||
/// <returns>A <see cref="JArray"/> with the values of the specified object.</returns>
|
||||
public new static JArray FromObject(object o, JsonSerializer jsonSerializer)
|
||||
{
|
||||
JToken token = FromObjectInternal(o, jsonSerializer);
|
||||
@@ -290,9 +290,9 @@ namespace Newtonsoft.Json.Linq
|
||||
|
||||
#region IList<JToken> Members
|
||||
/// <summary>
|
||||
/// Determines the index of a specific item in the <see cref="T:System.Collections.Generic.IList`1"/>.
|
||||
/// Determines the index of a specific item in the <see cref="JArray"/>.
|
||||
/// </summary>
|
||||
/// <param name="item">The object to locate in the <see cref="T:System.Collections.Generic.IList`1"/>.</param>
|
||||
/// <param name="item">The object to locate in the <see cref="JArray"/>.</param>
|
||||
/// <returns>
|
||||
/// The index of <paramref name="item"/> if found in the list; otherwise, -1.
|
||||
/// </returns>
|
||||
@@ -302,25 +302,25 @@ namespace Newtonsoft.Json.Linq
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Inserts an item to the <see cref="T:System.Collections.Generic.IList`1"/> at the specified index.
|
||||
/// Inserts an item to the <see cref="JArray"/> at the specified index.
|
||||
/// </summary>
|
||||
/// <param name="index">The zero-based index at which <paramref name="item"/> should be inserted.</param>
|
||||
/// <param name="item">The object to insert into the <see cref="T:System.Collections.Generic.IList`1"/>.</param>
|
||||
/// <exception cref="T:System.ArgumentOutOfRangeException">
|
||||
/// <paramref name="index"/> is not a valid index in the <see cref="T:System.Collections.Generic.IList`1"/>.</exception>
|
||||
/// <exception cref="T:System.NotSupportedException">The <see cref="T:System.Collections.Generic.IList`1"/> is read-only.</exception>
|
||||
/// <param name="item">The object to insert into the <see cref="JArray"/>.</param>
|
||||
/// <exception cref="ArgumentOutOfRangeException">
|
||||
/// <paramref name="index"/> is not a valid index in the <see cref="JArray"/>.
|
||||
/// </exception>
|
||||
public void Insert(int index, JToken item)
|
||||
{
|
||||
InsertItem(index, item, false);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Removes the <see cref="T:System.Collections.Generic.IList`1"/> item at the specified index.
|
||||
/// Removes the <see cref="JArray"/> item at the specified index.
|
||||
/// </summary>
|
||||
/// <param name="index">The zero-based index of the item to remove.</param>
|
||||
/// <exception cref="T:System.ArgumentOutOfRangeException">
|
||||
/// <paramref name="index"/> is not a valid index in the <see cref="T:System.Collections.Generic.IList`1"/>.</exception>
|
||||
/// <exception cref="T:System.NotSupportedException">The <see cref="T:System.Collections.Generic.IList`1"/> is read-only.</exception>
|
||||
/// <exception cref="ArgumentOutOfRangeException">
|
||||
/// <paramref name="index"/> is not a valid index in the <see cref="JArray"/>.
|
||||
/// </exception>
|
||||
public void RemoveAt(int index)
|
||||
{
|
||||
RemoveItemAt(index);
|
||||
@@ -330,7 +330,7 @@ namespace Newtonsoft.Json.Linq
|
||||
/// Returns an enumerator that iterates through the collection.
|
||||
/// </summary>
|
||||
/// <returns>
|
||||
/// A <see cref="T:System.Collections.Generic.IEnumerator`1" /> that can be used to iterate through the collection.
|
||||
/// A <see cref="IEnumerator{T}"/> of <see cref="JToken"/> that can be used to iterate through the collection.
|
||||
/// </returns>
|
||||
public IEnumerator<JToken> GetEnumerator()
|
||||
{
|
||||
@@ -340,30 +340,28 @@ namespace Newtonsoft.Json.Linq
|
||||
|
||||
#region ICollection<JToken> Members
|
||||
/// <summary>
|
||||
/// Adds an item to the <see cref="T:System.Collections.Generic.ICollection`1"/>.
|
||||
/// Adds an item to the <see cref="JArray"/>.
|
||||
/// </summary>
|
||||
/// <param name="item">The object to add to the <see cref="T:System.Collections.Generic.ICollection`1"/>.</param>
|
||||
/// <exception cref="T:System.NotSupportedException">The <see cref="T:System.Collections.Generic.ICollection`1"/> is read-only.</exception>
|
||||
/// <param name="item">The object to add to the <see cref="JArray"/>.</param>
|
||||
public void Add(JToken item)
|
||||
{
|
||||
Add((object)item);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Removes all items from the <see cref="T:System.Collections.Generic.ICollection`1"/>.
|
||||
/// Removes all items from the <see cref="JArray"/>.
|
||||
/// </summary>
|
||||
/// <exception cref="T:System.NotSupportedException">The <see cref="T:System.Collections.Generic.ICollection`1"/> is read-only. </exception>
|
||||
public void Clear()
|
||||
{
|
||||
ClearItems();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Determines whether the <see cref="T:System.Collections.Generic.ICollection`1"/> contains a specific value.
|
||||
/// Determines whether the <see cref="JArray"/> contains a specific value.
|
||||
/// </summary>
|
||||
/// <param name="item">The object to locate in the <see cref="T:System.Collections.Generic.ICollection`1"/>.</param>
|
||||
/// <param name="item">The object to locate in the <see cref="JArray"/>.</param>
|
||||
/// <returns>
|
||||
/// true if <paramref name="item"/> is found in the <see cref="T:System.Collections.Generic.ICollection`1"/>; otherwise, false.
|
||||
/// <c>true</c> if <paramref name="item"/> is found in the <see cref="JArray"/>; otherwise, <c>false</c>.
|
||||
/// </returns>
|
||||
public bool Contains(JToken item)
|
||||
{
|
||||
@@ -371,7 +369,7 @@ namespace Newtonsoft.Json.Linq
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Copies to.
|
||||
/// Copies the elements of the <see cref="JArray"/> to an array, starting at a particular array index.
|
||||
/// </summary>
|
||||
/// <param name="array">The array.</param>
|
||||
/// <param name="arrayIndex">Index of the array.</param>
|
||||
@@ -381,22 +379,21 @@ namespace Newtonsoft.Json.Linq
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets a value indicating whether the <see cref="T:System.Collections.Generic.ICollection`1" /> is read-only.
|
||||
/// Gets a value indicating whether the <see cref="JArray"/> is read-only.
|
||||
/// </summary>
|
||||
/// <returns>true if the <see cref="T:System.Collections.Generic.ICollection`1" /> is read-only; otherwise, false.</returns>
|
||||
/// <returns><c>true</c> if the <see cref="JArray"/> is read-only; otherwise, <c>false</c>.</returns>
|
||||
public bool IsReadOnly
|
||||
{
|
||||
get { return false; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Removes the first occurrence of a specific object from the <see cref="T:System.Collections.Generic.ICollection`1"/>.
|
||||
/// Removes the first occurrence of a specific object from the <see cref="JArray"/>.
|
||||
/// </summary>
|
||||
/// <param name="item">The object to remove from the <see cref="T:System.Collections.Generic.ICollection`1"/>.</param>
|
||||
/// <param name="item">The object to remove from the <see cref="JArray"/>.</param>
|
||||
/// <returns>
|
||||
/// true if <paramref name="item"/> was successfully removed from the <see cref="T:System.Collections.Generic.ICollection`1"/>; otherwise, false. This method also returns false if <paramref name="item"/> is not found in the original <see cref="T:System.Collections.Generic.ICollection`1"/>.
|
||||
/// <c>true</c> if <paramref name="item"/> was successfully removed from the <see cref="JArray"/>; otherwise, <c>false</c>. This method also returns <c>false</c> if <paramref name="item"/> is not found in the original <see cref="JArray"/>.
|
||||
/// </returns>
|
||||
/// <exception cref="T:System.NotSupportedException">The <see cref="T:System.Collections.Generic.ICollection`1"/> is read-only.</exception>
|
||||
public bool Remove(JToken item)
|
||||
{
|
||||
return RemoveItem(item);
|
||||
|
||||
@@ -208,7 +208,7 @@ namespace Newtonsoft.Json.Linq
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Loads an <see cref="JConstructor"/> from a <see cref="JsonReader"/>.
|
||||
/// Loads a <see cref="JConstructor"/> from a <see cref="JsonReader"/>.
|
||||
/// </summary>
|
||||
/// <param name="reader">A <see cref="JsonReader"/> that will be read for the content of the <see cref="JConstructor"/>.</param>
|
||||
/// <returns>A <see cref="JConstructor"/> that contains the JSON that was read from the specified <see cref="JsonReader"/>.</returns>
|
||||
@@ -218,11 +218,11 @@ namespace Newtonsoft.Json.Linq
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Loads an <see cref="JConstructor"/> from a <see cref="JsonReader"/>.
|
||||
/// Loads a <see cref="JConstructor"/> from a <see cref="JsonReader"/>.
|
||||
/// </summary>
|
||||
/// <param name="reader">A <see cref="JsonReader"/> that will be read for the content of the <see cref="JConstructor"/>.</param>
|
||||
/// <param name="settings">The <see cref="JsonLoadSettings"/> used to load the JSON.
|
||||
/// If this is null, default load settings will be used.</param>
|
||||
/// If this is <c>null</c>, default load settings will be used.</param>
|
||||
/// <returns>A <see cref="JConstructor"/> that contains the JSON that was read from the specified <see cref="JsonReader"/>.</returns>
|
||||
public new static JConstructor Load(JsonReader reader, JsonLoadSettings settings)
|
||||
{
|
||||
|
||||
@@ -286,7 +286,7 @@ namespace Newtonsoft.Json.Linq
|
||||
/// <summary>
|
||||
/// Returns a collection of the descendant tokens for this token in document order.
|
||||
/// </summary>
|
||||
/// <returns>An <see cref="IEnumerable{JToken}"/> containing the descendant tokens of the <see cref="JToken"/>.</returns>
|
||||
/// <returns>An <see cref="IEnumerable{T}"/> of <see cref="JToken"/> containing the descendant tokens of the <see cref="JToken"/>.</returns>
|
||||
public IEnumerable<JToken> Descendants()
|
||||
{
|
||||
return GetDescendants(false);
|
||||
@@ -295,7 +295,7 @@ namespace Newtonsoft.Json.Linq
|
||||
/// <summary>
|
||||
/// Returns a collection of the tokens that contain this token, and all descendant tokens of this token, in document order.
|
||||
/// </summary>
|
||||
/// <returns>An <see cref="IEnumerable{JToken}"/> containing this token, and all the descendant tokens of the <see cref="JToken"/>.</returns>
|
||||
/// <returns>An <see cref="IEnumerable{T}"/> of <see cref="JToken"/> containing this token, and all the descendant tokens of the <see cref="JToken"/>.</returns>
|
||||
public IEnumerable<JToken> DescendantsAndSelf()
|
||||
{
|
||||
return GetDescendants(true);
|
||||
@@ -685,16 +685,16 @@ namespace Newtonsoft.Json.Linq
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Creates an <see cref="JsonWriter"/> that can be used to add tokens to the <see cref="JToken"/>.
|
||||
/// Creates a <see cref="JsonWriter"/> that can be used to add tokens to the <see cref="JToken"/>.
|
||||
/// </summary>
|
||||
/// <returns>An <see cref="JsonWriter"/> that is ready to have content written to it.</returns>
|
||||
/// <returns>A <see cref="JsonWriter"/> that is ready to have content written to it.</returns>
|
||||
public JsonWriter CreateWriter()
|
||||
{
|
||||
return new JTokenWriter(this);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Replaces the children nodes of this token with the specified content.
|
||||
/// Replaces the child nodes of this token with the specified content.
|
||||
/// </summary>
|
||||
/// <param name="content">The content.</param>
|
||||
public void ReplaceAll(object content)
|
||||
@@ -1026,7 +1026,7 @@ namespace Newtonsoft.Json.Linq
|
||||
/// <summary>
|
||||
/// Gets the count of child JSON tokens.
|
||||
/// </summary>
|
||||
/// <value>The count of child JSON tokens</value>
|
||||
/// <value>The count of child JSON tokens.</value>
|
||||
public int Count
|
||||
{
|
||||
get { return ChildrenTokens.Count; }
|
||||
|
||||
@@ -38,7 +38,7 @@ namespace Newtonsoft.Json.Linq
|
||||
/// <summary>
|
||||
/// Represents a collection of <see cref="JToken"/> objects.
|
||||
/// </summary>
|
||||
/// <typeparam name="T">The type of token</typeparam>
|
||||
/// <typeparam name="T">The type of token.</typeparam>
|
||||
public struct JEnumerable<T> : IJEnumerable<T>, IEquatable<JEnumerable<T>> where T : JToken
|
||||
{
|
||||
/// <summary>
|
||||
@@ -60,10 +60,10 @@ namespace Newtonsoft.Json.Linq
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns an enumerator that iterates through the collection.
|
||||
/// Returns an enumerator that can be used to iterate through the collection.
|
||||
/// </summary>
|
||||
/// <returns>
|
||||
/// A <see cref="T:System.Collections.Generic.IEnumerator`1"/> that can be used to iterate through the collection.
|
||||
/// A <see cref="IEnumerator{T}"/> that can be used to iterate through the collection.
|
||||
/// </returns>
|
||||
public IEnumerator<T> GetEnumerator()
|
||||
{
|
||||
@@ -75,19 +75,13 @@ namespace Newtonsoft.Json.Linq
|
||||
return _enumerable.GetEnumerator();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns an enumerator that iterates through a collection.
|
||||
/// </summary>
|
||||
/// <returns>
|
||||
/// An <see cref="T:System.Collections.IEnumerator"/> object that can be used to iterate through the collection.
|
||||
/// </returns>
|
||||
IEnumerator IEnumerable.GetEnumerator()
|
||||
{
|
||||
return GetEnumerator();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the <see cref="IJEnumerable{JToken}"/> with the specified key.
|
||||
/// Gets the <see cref="IJEnumerable{T}"/> of <see cref="JToken"/> with the specified key.
|
||||
/// </summary>
|
||||
/// <value></value>
|
||||
public IJEnumerable<JToken> this[object key]
|
||||
@@ -116,11 +110,11 @@ namespace Newtonsoft.Json.Linq
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Determines whether the specified <see cref="System.Object"/> is equal to this instance.
|
||||
/// Determines whether the specified <see cref="Object"/> is equal to this instance.
|
||||
/// </summary>
|
||||
/// <param name="obj">The <see cref="System.Object"/> to compare with this instance.</param>
|
||||
/// <param name="obj">The <see cref="Object"/> to compare with this instance.</param>
|
||||
/// <returns>
|
||||
/// <c>true</c> if the specified <see cref="System.Object"/> is equal to this instance; otherwise, <c>false</c>.
|
||||
/// <c>true</c> if the specified <see cref="Object"/> is equal to this instance; otherwise, <c>false</c>.
|
||||
/// </returns>
|
||||
public override bool Equals(object obj)
|
||||
{
|
||||
|
||||
@@ -244,9 +244,9 @@ namespace Newtonsoft.Json.Linq
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets an <see cref="IEnumerable{JProperty}"/> of this object's properties.
|
||||
/// Gets an <see cref="IEnumerable{T}"/> of <see cref="JProperty"/> of this object's properties.
|
||||
/// </summary>
|
||||
/// <returns>An <see cref="IEnumerable{JProperty}"/> of this object's properties.</returns>
|
||||
/// <returns>An <see cref="IEnumerable{T}"/> of <see cref="JProperty"/> of this object's properties.</returns>
|
||||
public IEnumerable<JProperty> Properties()
|
||||
{
|
||||
return _properties.Cast<JProperty>();
|
||||
@@ -256,7 +256,7 @@ namespace Newtonsoft.Json.Linq
|
||||
/// Gets a <see cref="JProperty"/> the specified name.
|
||||
/// </summary>
|
||||
/// <param name="name">The property name.</param>
|
||||
/// <returns>A <see cref="JProperty"/> with the specified name or null.</returns>
|
||||
/// <returns>A <see cref="JProperty"/> with the specified name or <c>null</c>.</returns>
|
||||
public JProperty Property(string name)
|
||||
{
|
||||
if (name == null)
|
||||
@@ -270,9 +270,9 @@ namespace Newtonsoft.Json.Linq
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets an <see cref="JEnumerable{JToken}"/> of this object's property values.
|
||||
/// Gets a <see cref="JEnumerable{T}"/> of <see cref="JToken"/> of this object's property values.
|
||||
/// </summary>
|
||||
/// <returns>An <see cref="JEnumerable{JToken}"/> of this object's property values.</returns>
|
||||
/// <returns>A <see cref="JEnumerable{T}"/> of <see cref="JToken"/> of this object's property values.</returns>
|
||||
public JEnumerable<JToken> PropertyValues()
|
||||
{
|
||||
return new JEnumerable<JToken>(Properties().Select(p => p.Value));
|
||||
@@ -311,7 +311,7 @@ namespace Newtonsoft.Json.Linq
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the <see cref="Newtonsoft.Json.Linq.JToken"/> with the specified property name.
|
||||
/// Gets or sets the <see cref="JToken"/> with the specified property name.
|
||||
/// </summary>
|
||||
/// <value></value>
|
||||
public JToken this[string propertyName]
|
||||
@@ -343,7 +343,7 @@ namespace Newtonsoft.Json.Linq
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Loads an <see cref="JObject"/> from a <see cref="JsonReader"/>.
|
||||
/// Loads a <see cref="JObject"/> from a <see cref="JsonReader"/>.
|
||||
/// </summary>
|
||||
/// <param name="reader">A <see cref="JsonReader"/> that will be read for the content of the <see cref="JObject"/>.</param>
|
||||
/// <returns>A <see cref="JObject"/> that contains the JSON that was read from the specified <see cref="JsonReader"/>.</returns>
|
||||
@@ -356,11 +356,11 @@ namespace Newtonsoft.Json.Linq
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Loads an <see cref="JObject"/> from a <see cref="JsonReader"/>.
|
||||
/// Loads a <see cref="JObject"/> from a <see cref="JsonReader"/>.
|
||||
/// </summary>
|
||||
/// <param name="reader">A <see cref="JsonReader"/> that will be read for the content of the <see cref="JObject"/>.</param>
|
||||
/// <param name="settings">The <see cref="JsonLoadSettings"/> used to load the JSON.
|
||||
/// If this is null, default load settings will be used.</param>
|
||||
/// If this is <c>null</c>, default load settings will be used.</param>
|
||||
/// <returns>A <see cref="JObject"/> that contains the JSON that was read from the specified <see cref="JsonReader"/>.</returns>
|
||||
/// <exception cref="JsonReaderException">
|
||||
/// <paramref name="reader"/> is not valid JSON.
|
||||
@@ -413,7 +413,7 @@ namespace Newtonsoft.Json.Linq
|
||||
/// </summary>
|
||||
/// <param name="json">A <see cref="String"/> that contains JSON.</param>
|
||||
/// <param name="settings">The <see cref="JsonLoadSettings"/> used to load the JSON.
|
||||
/// If this is null, default load settings will be used.</param>
|
||||
/// If this is <c>null</c>, default load settings will be used.</param>
|
||||
/// <returns>A <see cref="JObject"/> populated from the string that contains JSON.</returns>
|
||||
/// <exception cref="JsonReaderException">
|
||||
/// <paramref name="json"/> is not valid JSON.
|
||||
@@ -440,7 +440,7 @@ namespace Newtonsoft.Json.Linq
|
||||
/// Creates a <see cref="JObject"/> from an object.
|
||||
/// </summary>
|
||||
/// <param name="o">The object that will be used to create <see cref="JObject"/>.</param>
|
||||
/// <returns>A <see cref="JObject"/> with the values of the specified object</returns>
|
||||
/// <returns>A <see cref="JObject"/> with the values of the specified object.</returns>
|
||||
public new static JObject FromObject(object o)
|
||||
{
|
||||
return FromObject(o, JsonSerializer.CreateDefault());
|
||||
@@ -451,7 +451,7 @@ namespace Newtonsoft.Json.Linq
|
||||
/// </summary>
|
||||
/// <param name="o">The object that will be used to create <see cref="JObject"/>.</param>
|
||||
/// <param name="jsonSerializer">The <see cref="JsonSerializer"/> that will be used to read the object.</param>
|
||||
/// <returns>A <see cref="JObject"/> with the values of the specified object</returns>
|
||||
/// <returns>A <see cref="JObject"/> with the values of the specified object.</returns>
|
||||
public new static JObject FromObject(object o, JsonSerializer jsonSerializer)
|
||||
{
|
||||
JToken token = FromObjectInternal(o, jsonSerializer);
|
||||
@@ -583,7 +583,7 @@ namespace Newtonsoft.Json.Linq
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Tries the get value.
|
||||
/// Tries to get the <see cref="Newtonsoft.Json.Linq.JToken"/> with the specified property name.
|
||||
/// </summary>
|
||||
/// <param name="propertyName">Name of the property.</param>
|
||||
/// <param name="value">The value.</param>
|
||||
@@ -683,10 +683,10 @@ namespace Newtonsoft.Json.Linq
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns an enumerator that iterates through the collection.
|
||||
/// Returns an enumerator that can be used to iterate through the collection.
|
||||
/// </summary>
|
||||
/// <returns>
|
||||
/// A <see cref="T:System.Collections.Generic.IEnumerator`1"/> that can be used to iterate through the collection.
|
||||
/// A <see cref="IEnumerator{T}"/> that can be used to iterate through the collection.
|
||||
/// </returns>
|
||||
public IEnumerator<KeyValuePair<string, JToken>> GetEnumerator()
|
||||
{
|
||||
@@ -720,24 +720,11 @@ namespace Newtonsoft.Json.Linq
|
||||
// include custom type descriptor on JObject rather than use a provider because the properties are specific to a type
|
||||
|
||||
#region ICustomTypeDescriptor
|
||||
/// <summary>
|
||||
/// Returns the properties for this instance of a component.
|
||||
/// </summary>
|
||||
/// <returns>
|
||||
/// A <see cref="T:System.ComponentModel.PropertyDescriptorCollection"/> that represents the properties for this component instance.
|
||||
/// </returns>
|
||||
PropertyDescriptorCollection ICustomTypeDescriptor.GetProperties()
|
||||
{
|
||||
return ((ICustomTypeDescriptor)this).GetProperties(null);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns the properties for this instance of a component using the attribute array as a filter.
|
||||
/// </summary>
|
||||
/// <param name="attributes">An array of type <see cref="T:System.Attribute"/> that is used as a filter.</param>
|
||||
/// <returns>
|
||||
/// A <see cref="T:System.ComponentModel.PropertyDescriptorCollection"/> that represents the filtered properties for this component instance.
|
||||
/// </returns>
|
||||
PropertyDescriptorCollection ICustomTypeDescriptor.GetProperties(Attribute[] attributes)
|
||||
{
|
||||
PropertyDescriptorCollection descriptors = new PropertyDescriptorCollection(null);
|
||||
@@ -750,114 +737,51 @@ namespace Newtonsoft.Json.Linq
|
||||
return descriptors;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns a collection of custom attributes for this instance of a component.
|
||||
/// </summary>
|
||||
/// <returns>
|
||||
/// An <see cref="T:System.ComponentModel.AttributeCollection"/> containing the attributes for this object.
|
||||
/// </returns>
|
||||
AttributeCollection ICustomTypeDescriptor.GetAttributes()
|
||||
{
|
||||
return AttributeCollection.Empty;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns the class name of this instance of a component.
|
||||
/// </summary>
|
||||
/// <returns>
|
||||
/// The class name of the object, or null if the class does not have a name.
|
||||
/// </returns>
|
||||
string ICustomTypeDescriptor.GetClassName()
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns the name of this instance of a component.
|
||||
/// </summary>
|
||||
/// <returns>
|
||||
/// The name of the object, or null if the object does not have a name.
|
||||
/// </returns>
|
||||
string ICustomTypeDescriptor.GetComponentName()
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns a type converter for this instance of a component.
|
||||
/// </summary>
|
||||
/// <returns>
|
||||
/// A <see cref="T:System.ComponentModel.TypeConverter"/> that is the converter for this object, or null if there is no <see cref="T:System.ComponentModel.TypeConverter"/> for this object.
|
||||
/// </returns>
|
||||
TypeConverter ICustomTypeDescriptor.GetConverter()
|
||||
{
|
||||
return new TypeConverter();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns the default event for this instance of a component.
|
||||
/// </summary>
|
||||
/// <returns>
|
||||
/// An <see cref="T:System.ComponentModel.EventDescriptor"/> that represents the default event for this object, or null if this object does not have events.
|
||||
/// </returns>
|
||||
EventDescriptor ICustomTypeDescriptor.GetDefaultEvent()
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns the default property for this instance of a component.
|
||||
/// </summary>
|
||||
/// <returns>
|
||||
/// A <see cref="T:System.ComponentModel.PropertyDescriptor"/> that represents the default property for this object, or null if this object does not have properties.
|
||||
/// </returns>
|
||||
PropertyDescriptor ICustomTypeDescriptor.GetDefaultProperty()
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns an editor of the specified type for this instance of a component.
|
||||
/// </summary>
|
||||
/// <param name="editorBaseType">A <see cref="T:System.Type"/> that represents the editor for this object.</param>
|
||||
/// <returns>
|
||||
/// An <see cref="T:System.Object"/> of the specified type that is the editor for this object, or null if the editor cannot be found.
|
||||
/// </returns>
|
||||
object ICustomTypeDescriptor.GetEditor(Type editorBaseType)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns the events for this instance of a component using the specified attribute array as a filter.
|
||||
/// </summary>
|
||||
/// <param name="attributes">An array of type <see cref="T:System.Attribute"/> that is used as a filter.</param>
|
||||
/// <returns>
|
||||
/// An <see cref="T:System.ComponentModel.EventDescriptorCollection"/> that represents the filtered events for this component instance.
|
||||
/// </returns>
|
||||
EventDescriptorCollection ICustomTypeDescriptor.GetEvents(Attribute[] attributes)
|
||||
{
|
||||
return EventDescriptorCollection.Empty;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns the events for this instance of a component.
|
||||
/// </summary>
|
||||
/// <returns>
|
||||
/// An <see cref="T:System.ComponentModel.EventDescriptorCollection"/> that represents the events for this component instance.
|
||||
/// </returns>
|
||||
EventDescriptorCollection ICustomTypeDescriptor.GetEvents()
|
||||
{
|
||||
return EventDescriptorCollection.Empty;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns an object that contains the property described by the specified property descriptor.
|
||||
/// </summary>
|
||||
/// <param name="pd">A <see cref="T:System.ComponentModel.PropertyDescriptor"/> that represents the property whose owner is to be found.</param>
|
||||
/// <returns>
|
||||
/// An <see cref="T:System.Object"/> that represents the owner of the specified property.
|
||||
/// </returns>
|
||||
object ICustomTypeDescriptor.GetPropertyOwner(PropertyDescriptor pd)
|
||||
{
|
||||
return null;
|
||||
@@ -868,11 +792,11 @@ namespace Newtonsoft.Json.Linq
|
||||
|
||||
#if !(NET35 || NET20 || PORTABLE40)
|
||||
/// <summary>
|
||||
/// Returns the <see cref="T:System.Dynamic.DynamicMetaObject"/> responsible for binding operations performed on this object.
|
||||
/// Returns the <see cref="DynamicMetaObject"/> responsible for binding operations performed on this object.
|
||||
/// </summary>
|
||||
/// <param name="parameter">The expression tree representation of the runtime value.</param>
|
||||
/// <returns>
|
||||
/// The <see cref="T:System.Dynamic.DynamicMetaObject"/> to bind this object.
|
||||
/// The <see cref="DynamicMetaObject"/> to bind this object.
|
||||
/// </returns>
|
||||
protected override DynamicMetaObject GetMetaObject(Expression parameter)
|
||||
{
|
||||
|
||||
@@ -361,7 +361,7 @@ namespace Newtonsoft.Json.Linq
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Loads an <see cref="JProperty"/> from a <see cref="JsonReader"/>.
|
||||
/// Loads a <see cref="JProperty"/> from a <see cref="JsonReader"/>.
|
||||
/// </summary>
|
||||
/// <param name="reader">A <see cref="JsonReader"/> that will be read for the content of the <see cref="JProperty"/>.</param>
|
||||
/// <returns>A <see cref="JProperty"/> that contains the JSON that was read from the specified <see cref="JsonReader"/>.</returns>
|
||||
@@ -371,11 +371,11 @@ namespace Newtonsoft.Json.Linq
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Loads an <see cref="JProperty"/> from a <see cref="JsonReader"/>.
|
||||
/// Loads a <see cref="JProperty"/> from a <see cref="JsonReader"/>.
|
||||
/// </summary>
|
||||
/// <param name="reader">A <see cref="JsonReader"/> that will be read for the content of the <see cref="JProperty"/>.</param>
|
||||
/// <param name="settings">The <see cref="JsonLoadSettings"/> used to load the JSON.
|
||||
/// If this is null, default load settings will be used.</param>
|
||||
/// If this is <c>null</c>, default load settings will be used.</param>
|
||||
/// <returns>A <see cref="JProperty"/> that contains the JSON that was read from the specified <see cref="JsonReader"/>.</returns>
|
||||
public new static JProperty Load(JsonReader reader, JsonLoadSettings settings)
|
||||
{
|
||||
|
||||
@@ -66,8 +66,7 @@ namespace Newtonsoft.Json.Linq
|
||||
/// <returns>
|
||||
/// The value of a property for a given component.
|
||||
/// </returns>
|
||||
/// <param name="component">The component with the property for which to retrieve the value.
|
||||
/// </param>
|
||||
/// <param name="component">The component with the property for which to retrieve the value.</param>
|
||||
public override object GetValue(object component)
|
||||
{
|
||||
JToken token = CastInstance(component)[Name];
|
||||
@@ -78,8 +77,7 @@ namespace Newtonsoft.Json.Linq
|
||||
/// <summary>
|
||||
/// When overridden in a derived class, resets the value for this property of the component to the default value.
|
||||
/// </summary>
|
||||
/// <param name="component">The component with the property value that is to be reset to the default value.
|
||||
/// </param>
|
||||
/// <param name="component">The component with the property value that is to be reset to the default value.</param>
|
||||
public override void ResetValue(object component)
|
||||
{
|
||||
}
|
||||
@@ -87,9 +85,8 @@ namespace Newtonsoft.Json.Linq
|
||||
/// <summary>
|
||||
/// When overridden in a derived class, sets the value of the component to a different value.
|
||||
/// </summary>
|
||||
/// <param name="component">The component with the property value that is to be set.
|
||||
/// </param><param name="value">The new value.
|
||||
/// </param>
|
||||
/// <param name="component">The component with the property value that is to be set.</param>
|
||||
/// <param name="value">The new value.</param>
|
||||
public override void SetValue(object component, object value)
|
||||
{
|
||||
JToken token = (value is JToken) ? (JToken)value : new JValue(value);
|
||||
@@ -113,7 +110,10 @@ namespace Newtonsoft.Json.Linq
|
||||
/// When overridden in a derived class, gets the type of the component this property is bound to.
|
||||
/// </summary>
|
||||
/// <returns>
|
||||
/// A <see cref="T:System.Type"/> that represents the type of component this property is bound to. When the <see cref="M:System.ComponentModel.PropertyDescriptor.GetValue(System.Object)"/> or <see cref="M:System.ComponentModel.PropertyDescriptor.SetValue(System.Object,System.Object)"/> methods are invoked, the object specified might be an instance of this type.
|
||||
/// A <see cref="Type"/> that represents the type of component this property is bound to.
|
||||
/// When the <see cref="PropertyDescriptor.GetValue(Object)"/> or
|
||||
/// <see cref="PropertyDescriptor.SetValue(Object, Object)"/>
|
||||
/// methods are invoked, the object specified might be an instance of this type.
|
||||
/// </returns>
|
||||
public override Type ComponentType
|
||||
{
|
||||
@@ -135,7 +135,7 @@ namespace Newtonsoft.Json.Linq
|
||||
/// When overridden in a derived class, gets the type of the property.
|
||||
/// </summary>
|
||||
/// <returns>
|
||||
/// A <see cref="T:System.Type"/> that represents the type of the property.
|
||||
/// A <see cref="Type"/> that represents the type of the property.
|
||||
/// </returns>
|
||||
public override Type PropertyType
|
||||
{
|
||||
|
||||
@@ -428,8 +428,8 @@ namespace Newtonsoft.Json.Linq
|
||||
/// <summary>
|
||||
/// Returns the JSON for this token using the given formatting and converters.
|
||||
/// </summary>
|
||||
/// <param name="formatting">Indicates how the output is formatted.</param>
|
||||
/// <param name="converters">A collection of <see cref="JsonConverter"/> which will be used when writing the token.</param>
|
||||
/// <param name="formatting">Indicates how the output should be formatted.</param>
|
||||
/// <param name="converters">A collection of <see cref="JsonConverter"/>s which will be used when writing the token.</param>
|
||||
/// <returns>The JSON for this token using the given formatting and converters.</returns>
|
||||
public string ToString(Formatting formatting, params JsonConverter[] converters)
|
||||
{
|
||||
@@ -529,7 +529,7 @@ namespace Newtonsoft.Json.Linq
|
||||
#endif
|
||||
|
||||
/// <summary>
|
||||
/// Performs an explicit conversion from <see cref="Newtonsoft.Json.Linq.JToken"/> to <see cref="Nullable{Boolean}"/>.
|
||||
/// Performs an explicit conversion from <see cref="JToken"/> to <see cref="Nullable{T}"/> of <see cref="Boolean"/>.
|
||||
/// </summary>
|
||||
/// <param name="value">The value.</param>
|
||||
/// <returns>The result of the conversion.</returns>
|
||||
@@ -557,7 +557,7 @@ namespace Newtonsoft.Json.Linq
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Performs an explicit conversion from <see cref="Newtonsoft.Json.Linq.JToken"/> to <see cref="System.Int64"/>.
|
||||
/// Performs an explicit conversion from <see cref="JToken"/> to <see cref="Nullable{T}"/> of <see cref="Int64"/>.
|
||||
/// </summary>
|
||||
/// <param name="value">The value.</param>
|
||||
/// <returns>The result of the conversion.</returns>
|
||||
@@ -580,7 +580,7 @@ namespace Newtonsoft.Json.Linq
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Performs an explicit conversion from <see cref="Newtonsoft.Json.Linq.JToken"/> to <see cref="Nullable{DateTime}"/>.
|
||||
/// Performs an explicit conversion from <see cref="JToken"/> to <see cref="Nullable{T}"/> of <see cref="DateTime"/>.
|
||||
/// </summary>
|
||||
/// <param name="value">The value.</param>
|
||||
/// <returns>The result of the conversion.</returns>
|
||||
@@ -609,7 +609,7 @@ namespace Newtonsoft.Json.Linq
|
||||
|
||||
#if !NET20
|
||||
/// <summary>
|
||||
/// Performs an explicit conversion from <see cref="Newtonsoft.Json.Linq.JToken"/> to <see cref="Nullable{DateTimeOffset}"/>.
|
||||
/// Performs an explicit conversion from <see cref="JToken"/> to <see cref="Nullable{T}"/> of <see cref="DateTimeOffset"/>.
|
||||
/// </summary>
|
||||
/// <param name="value">The value.</param>
|
||||
/// <returns>The result of the conversion.</returns>
|
||||
@@ -643,7 +643,7 @@ namespace Newtonsoft.Json.Linq
|
||||
#endif
|
||||
|
||||
/// <summary>
|
||||
/// Performs an explicit conversion from <see cref="Newtonsoft.Json.Linq.JToken"/> to <see cref="Nullable{Decimal}"/>.
|
||||
/// Performs an explicit conversion from <see cref="JToken"/> to <see cref="Nullable{T}"/> of <see cref="Decimal"/>.
|
||||
/// </summary>
|
||||
/// <param name="value">The value.</param>
|
||||
/// <returns>The result of the conversion.</returns>
|
||||
@@ -671,7 +671,7 @@ namespace Newtonsoft.Json.Linq
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Performs an explicit conversion from <see cref="Newtonsoft.Json.Linq.JToken"/> to <see cref="Nullable{Double}"/>.
|
||||
/// Performs an explicit conversion from <see cref="JToken"/> to <see cref="Nullable{T}"/> of <see cref="Double"/>.
|
||||
/// </summary>
|
||||
/// <param name="value">The value.</param>
|
||||
/// <returns>The result of the conversion.</returns>
|
||||
@@ -699,7 +699,7 @@ namespace Newtonsoft.Json.Linq
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Performs an explicit conversion from <see cref="Newtonsoft.Json.Linq.JToken"/> to <see cref="Nullable{Char}"/>.
|
||||
/// Performs an explicit conversion from <see cref="JToken"/> to <see cref="Nullable{T}"/> of <see cref="Char"/>.
|
||||
/// </summary>
|
||||
/// <param name="value">The value.</param>
|
||||
/// <returns>The result of the conversion.</returns>
|
||||
@@ -727,7 +727,7 @@ namespace Newtonsoft.Json.Linq
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Performs an explicit conversion from <see cref="Newtonsoft.Json.Linq.JToken"/> to <see cref="System.Int32"/>.
|
||||
/// Performs an explicit conversion from <see cref="JToken"/> to <see cref="Int32"/>.
|
||||
/// </summary>
|
||||
/// <param name="value">The value.</param>
|
||||
/// <returns>The result of the conversion.</returns>
|
||||
@@ -750,7 +750,7 @@ namespace Newtonsoft.Json.Linq
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Performs an explicit conversion from <see cref="Newtonsoft.Json.Linq.JToken"/> to <see cref="System.Int16"/>.
|
||||
/// Performs an explicit conversion from <see cref="JToken"/> to <see cref="Int16"/>.
|
||||
/// </summary>
|
||||
/// <param name="value">The value.</param>
|
||||
/// <returns>The result of the conversion.</returns>
|
||||
@@ -773,7 +773,7 @@ namespace Newtonsoft.Json.Linq
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Performs an explicit conversion from <see cref="Newtonsoft.Json.Linq.JToken"/> to <see cref="System.UInt16"/>.
|
||||
/// Performs an explicit conversion from <see cref="JToken"/> to <see cref="UInt16"/>.
|
||||
/// </summary>
|
||||
/// <param name="value">The value.</param>
|
||||
/// <returns>The result of the conversion.</returns>
|
||||
@@ -797,7 +797,7 @@ namespace Newtonsoft.Json.Linq
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Performs an explicit conversion from <see cref="Newtonsoft.Json.Linq.JToken"/> to <see cref="System.Char"/>.
|
||||
/// Performs an explicit conversion from <see cref="JToken"/> to <see cref="Char"/>.
|
||||
/// </summary>
|
||||
/// <param name="value">The value.</param>
|
||||
/// <returns>The result of the conversion.</returns>
|
||||
@@ -821,7 +821,7 @@ namespace Newtonsoft.Json.Linq
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Performs an explicit conversion from <see cref="Newtonsoft.Json.Linq.JToken"/> to <see cref="System.Byte"/>.
|
||||
/// Performs an explicit conversion from <see cref="JToken"/> to <see cref="Byte"/>.
|
||||
/// </summary>
|
||||
/// <param name="value">The value.</param>
|
||||
/// <returns>The result of the conversion.</returns>
|
||||
@@ -868,7 +868,7 @@ namespace Newtonsoft.Json.Linq
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Performs an explicit conversion from <see cref="Newtonsoft.Json.Linq.JToken"/> to <see cref="Nullable{Int32}"/>.
|
||||
/// Performs an explicit conversion from <see cref="JToken"/> to <see cref="Nullable{T}"/> of <see cref="Int32"/> .
|
||||
/// </summary>
|
||||
/// <param name="value">The value.</param>
|
||||
/// <returns>The result of the conversion.</returns>
|
||||
@@ -896,7 +896,7 @@ namespace Newtonsoft.Json.Linq
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Performs an explicit conversion from <see cref="Newtonsoft.Json.Linq.JToken"/> to <see cref="Nullable{Int16}"/>.
|
||||
/// Performs an explicit conversion from <see cref="JToken"/> to <see cref="Nullable{T}"/> of <see cref="Int16"/>.
|
||||
/// </summary>
|
||||
/// <param name="value">The value.</param>
|
||||
/// <returns>The result of the conversion.</returns>
|
||||
@@ -924,7 +924,7 @@ namespace Newtonsoft.Json.Linq
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Performs an explicit conversion from <see cref="Newtonsoft.Json.Linq.JToken"/> to <see cref="Nullable{UInt16}"/>.
|
||||
/// Performs an explicit conversion from <see cref="JToken"/> to <see cref="Nullable{T}"/> of <see cref="UInt16"/>.
|
||||
/// </summary>
|
||||
/// <param name="value">The value.</param>
|
||||
/// <returns>The result of the conversion.</returns>
|
||||
@@ -953,7 +953,7 @@ namespace Newtonsoft.Json.Linq
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Performs an explicit conversion from <see cref="Newtonsoft.Json.Linq.JToken"/> to <see cref="Nullable{Byte}"/>.
|
||||
/// Performs an explicit conversion from <see cref="JToken"/> to <see cref="Nullable{T}"/> of <see cref="Byte"/>.
|
||||
/// </summary>
|
||||
/// <param name="value">The value.</param>
|
||||
/// <returns>The result of the conversion.</returns>
|
||||
@@ -981,7 +981,7 @@ namespace Newtonsoft.Json.Linq
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Performs an explicit conversion from <see cref="Newtonsoft.Json.Linq.JToken"/> to <see cref="Nullable{SByte}"/>.
|
||||
/// Performs an explicit conversion from <see cref="JToken"/> to <see cref="Nullable{T}"/> of <see cref="SByte"/>.
|
||||
/// </summary>
|
||||
/// <param name="value">The value.</param>
|
||||
/// <returns>The result of the conversion.</returns>
|
||||
@@ -1010,7 +1010,7 @@ namespace Newtonsoft.Json.Linq
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Performs an explicit conversion from <see cref="Newtonsoft.Json.Linq.JToken"/> to <see cref="System.DateTime"/>.
|
||||
/// Performs an explicit conversion from <see cref="JToken"/> to <see cref="Nullable{T}"/> of <see cref="DateTime"/>.
|
||||
/// </summary>
|
||||
/// <param name="value">The value.</param>
|
||||
/// <returns>The result of the conversion.</returns>
|
||||
@@ -1033,7 +1033,7 @@ namespace Newtonsoft.Json.Linq
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Performs an explicit conversion from <see cref="Newtonsoft.Json.Linq.JToken"/> to <see cref="Nullable{Int64}"/>.
|
||||
/// Performs an explicit conversion from <see cref="JToken"/> to <see cref="Nullable{T}"/> of <see cref="Int64"/>.
|
||||
/// </summary>
|
||||
/// <param name="value">The value.</param>
|
||||
/// <returns>The result of the conversion.</returns>
|
||||
@@ -1061,7 +1061,7 @@ namespace Newtonsoft.Json.Linq
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Performs an explicit conversion from <see cref="Newtonsoft.Json.Linq.JToken"/> to <see cref="Nullable{Single}"/>.
|
||||
/// Performs an explicit conversion from <see cref="JToken"/> to <see cref="Nullable{T}"/> of <see cref="Single"/>.
|
||||
/// </summary>
|
||||
/// <param name="value">The value.</param>
|
||||
/// <returns>The result of the conversion.</returns>
|
||||
@@ -1089,7 +1089,7 @@ namespace Newtonsoft.Json.Linq
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Performs an explicit conversion from <see cref="Newtonsoft.Json.Linq.JToken"/> to <see cref="System.Decimal"/>.
|
||||
/// Performs an explicit conversion from <see cref="JToken"/> to <see cref="Decimal"/>.
|
||||
/// </summary>
|
||||
/// <param name="value">The value.</param>
|
||||
/// <returns>The result of the conversion.</returns>
|
||||
@@ -1112,7 +1112,7 @@ namespace Newtonsoft.Json.Linq
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Performs an explicit conversion from <see cref="Newtonsoft.Json.Linq.JToken"/> to <see cref="Nullable{UInt32}"/>.
|
||||
/// Performs an explicit conversion from <see cref="JToken"/> to <see cref="Nullable{T}"/> of <see cref="UInt32"/>.
|
||||
/// </summary>
|
||||
/// <param name="value">The value.</param>
|
||||
/// <returns>The result of the conversion.</returns>
|
||||
@@ -1141,7 +1141,7 @@ namespace Newtonsoft.Json.Linq
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Performs an explicit conversion from <see cref="Newtonsoft.Json.Linq.JToken"/> to <see cref="Nullable{UInt64}"/>.
|
||||
/// Performs an explicit conversion from <see cref="JToken"/> to <see cref="Nullable{T}"/> of <see cref="UInt64"/>.
|
||||
/// </summary>
|
||||
/// <param name="value">The value.</param>
|
||||
/// <returns>The result of the conversion.</returns>
|
||||
@@ -1170,7 +1170,7 @@ namespace Newtonsoft.Json.Linq
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Performs an explicit conversion from <see cref="Newtonsoft.Json.Linq.JToken"/> to <see cref="System.Double"/>.
|
||||
/// Performs an explicit conversion from <see cref="JToken"/> to <see cref="Double"/>.
|
||||
/// </summary>
|
||||
/// <param name="value">The value.</param>
|
||||
/// <returns>The result of the conversion.</returns>
|
||||
@@ -1193,7 +1193,7 @@ namespace Newtonsoft.Json.Linq
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Performs an explicit conversion from <see cref="Newtonsoft.Json.Linq.JToken"/> to <see cref="System.Single"/>.
|
||||
/// Performs an explicit conversion from <see cref="JToken"/> to <see cref="Single"/>.
|
||||
/// </summary>
|
||||
/// <param name="value">The value.</param>
|
||||
/// <returns>The result of the conversion.</returns>
|
||||
@@ -1216,7 +1216,7 @@ namespace Newtonsoft.Json.Linq
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Performs an explicit conversion from <see cref="Newtonsoft.Json.Linq.JToken"/> to <see cref="System.String"/>.
|
||||
/// Performs an explicit conversion from <see cref="JToken"/> to <see cref="String"/>.
|
||||
/// </summary>
|
||||
/// <param name="value">The value.</param>
|
||||
/// <returns>The result of the conversion.</returns>
|
||||
@@ -1252,7 +1252,7 @@ namespace Newtonsoft.Json.Linq
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Performs an explicit conversion from <see cref="Newtonsoft.Json.Linq.JToken"/> to <see cref="System.UInt32"/>.
|
||||
/// Performs an explicit conversion from <see cref="JToken"/> to <see cref="UInt32"/>.
|
||||
/// </summary>
|
||||
/// <param name="value">The value.</param>
|
||||
/// <returns>The result of the conversion.</returns>
|
||||
@@ -1300,7 +1300,7 @@ namespace Newtonsoft.Json.Linq
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Performs an explicit conversion from <see cref="Newtonsoft.Json.Linq.JToken"/> to <see cref="Byte"/>[].
|
||||
/// Performs an explicit conversion from <see cref="JToken"/> to <see cref="Byte"/>[].
|
||||
/// </summary>
|
||||
/// <param name="value">The value.</param>
|
||||
/// <returns>The result of the conversion.</returns>
|
||||
@@ -1337,7 +1337,7 @@ namespace Newtonsoft.Json.Linq
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Performs an explicit conversion from <see cref="Newtonsoft.Json.Linq.JToken"/> to <see cref="System.Guid"/>.
|
||||
/// Performs an explicit conversion from <see cref="JToken"/> to <see cref="Guid"/>.
|
||||
/// </summary>
|
||||
/// <param name="value">The value.</param>
|
||||
/// <returns>The result of the conversion.</returns>
|
||||
@@ -1358,7 +1358,7 @@ namespace Newtonsoft.Json.Linq
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Performs an explicit conversion from <see cref="Newtonsoft.Json.Linq.JToken"/> to <see cref="System.Guid"/>.
|
||||
/// Performs an explicit conversion from <see cref="JToken"/> to <see cref="Nullable{T}"/> of <see cref="Guid"/> .
|
||||
/// </summary>
|
||||
/// <param name="value">The value.</param>
|
||||
/// <returns>The result of the conversion.</returns>
|
||||
@@ -1389,7 +1389,7 @@ namespace Newtonsoft.Json.Linq
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Performs an explicit conversion from <see cref="Newtonsoft.Json.Linq.JToken"/> to <see cref="System.TimeSpan"/>.
|
||||
/// Performs an explicit conversion from <see cref="JToken"/> to <see cref="TimeSpan"/>.
|
||||
/// </summary>
|
||||
/// <param name="value">The value.</param>
|
||||
/// <returns>The result of the conversion.</returns>
|
||||
@@ -1405,7 +1405,7 @@ namespace Newtonsoft.Json.Linq
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Performs an explicit conversion from <see cref="Newtonsoft.Json.Linq.JToken"/> to <see cref="System.TimeSpan"/>.
|
||||
/// Performs an explicit conversion from <see cref="JToken"/> to <see cref="Nullable{T}"/> of <see cref="TimeSpan"/>.
|
||||
/// </summary>
|
||||
/// <param name="value">The value.</param>
|
||||
/// <returns>The result of the conversion.</returns>
|
||||
@@ -1431,7 +1431,7 @@ namespace Newtonsoft.Json.Linq
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Performs an explicit conversion from <see cref="Newtonsoft.Json.Linq.JToken"/> to <see cref="System.Uri"/>.
|
||||
/// Performs an explicit conversion from <see cref="JToken"/> to <see cref="Uri"/>.
|
||||
/// </summary>
|
||||
/// <param name="value">The value.</param>
|
||||
/// <returns>The result of the conversion.</returns>
|
||||
@@ -1520,7 +1520,7 @@ namespace Newtonsoft.Json.Linq
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Performs an implicit conversion from <see cref="Nullable{Byte}"/> to <see cref="JToken"/>.
|
||||
/// Performs an implicit conversion from <see cref="Nullable{T}"/> of <see cref="Byte"/> to <see cref="JToken"/>.
|
||||
/// </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>
|
||||
@@ -1541,7 +1541,7 @@ namespace Newtonsoft.Json.Linq
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Performs an implicit conversion from <see cref="Nullable{SByte}"/> to <see cref="JToken"/>.
|
||||
/// Performs an implicit conversion from <see cref="Nullable{T}"/> of <see cref="SByte"/> to <see cref="JToken"/>.
|
||||
/// </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>
|
||||
@@ -1552,7 +1552,7 @@ namespace Newtonsoft.Json.Linq
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Performs an implicit conversion from <see cref="Nullable{Boolean}"/> to <see cref="JToken"/>.
|
||||
/// Performs an implicit conversion from <see cref="Nullable{T}"/> of <see cref="Boolean"/> to <see cref="JToken"/>.
|
||||
/// </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>
|
||||
@@ -1562,7 +1562,7 @@ namespace Newtonsoft.Json.Linq
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Performs an implicit conversion from <see cref="Nullable{Int64}"/> to <see cref="JToken"/>.
|
||||
/// Performs an implicit conversion from <see cref="Nullable{T}"/> of <see cref="Int64"/> to <see cref="JToken"/>.
|
||||
/// </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>
|
||||
@@ -1572,7 +1572,7 @@ namespace Newtonsoft.Json.Linq
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Performs an implicit conversion from <see cref="Nullable{DateTime}"/> to <see cref="JToken"/>.
|
||||
/// Performs an implicit conversion from <see cref="Nullable{T}"/> of <see cref="DateTime"/> to <see cref="JToken"/>.
|
||||
/// </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>
|
||||
@@ -1583,7 +1583,7 @@ namespace Newtonsoft.Json.Linq
|
||||
|
||||
#if !NET20
|
||||
/// <summary>
|
||||
/// Performs an implicit conversion from <see cref="Nullable{DateTimeOffset}"/> to <see cref="JToken"/>.
|
||||
/// Performs an implicit conversion from <see cref="Nullable{T}"/> of <see cref="DateTimeOffset"/> to <see cref="JToken"/>.
|
||||
/// </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>
|
||||
@@ -1594,7 +1594,7 @@ namespace Newtonsoft.Json.Linq
|
||||
#endif
|
||||
|
||||
/// <summary>
|
||||
/// Performs an implicit conversion from <see cref="Nullable{Decimal}"/> to <see cref="JToken"/>.
|
||||
/// Performs an implicit conversion from <see cref="Nullable{T}"/> of <see cref="Decimal"/> to <see cref="JToken"/>.
|
||||
/// </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>
|
||||
@@ -1604,7 +1604,7 @@ namespace Newtonsoft.Json.Linq
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Performs an implicit conversion from <see cref="Nullable{Double}"/> to <see cref="JToken"/>.
|
||||
/// Performs an implicit conversion from <see cref="Nullable{T}"/> of <see cref="Double"/> to <see cref="JToken"/>.
|
||||
/// </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>
|
||||
@@ -1646,7 +1646,7 @@ namespace Newtonsoft.Json.Linq
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Performs an implicit conversion from <see cref="Nullable{Int32}"/> to <see cref="JToken"/>.
|
||||
/// Performs an implicit conversion from <see cref="Nullable{T}"/> of <see cref="Int32"/> to <see cref="JToken"/>.
|
||||
/// </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>
|
||||
@@ -1666,7 +1666,7 @@ namespace Newtonsoft.Json.Linq
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Performs an implicit conversion from <see cref="Nullable{Int64}"/> to <see cref="JToken"/>.
|
||||
/// Performs an implicit conversion from <see cref="Nullable{T}"/> of <see cref="Int64"/> to <see cref="JToken"/>.
|
||||
/// </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>
|
||||
@@ -1676,7 +1676,7 @@ namespace Newtonsoft.Json.Linq
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Performs an implicit conversion from <see cref="Nullable{Single}"/> to <see cref="JToken"/>.
|
||||
/// Performs an implicit conversion from <see cref="Nullable{T}"/> of <see cref="Single"/> to <see cref="JToken"/>.
|
||||
/// </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>
|
||||
@@ -1696,7 +1696,7 @@ namespace Newtonsoft.Json.Linq
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Performs an implicit conversion from <see cref="Nullable{Int16}"/> to <see cref="JToken"/>.
|
||||
/// Performs an implicit conversion from <see cref="Nullable{T}"/> of <see cref="Int16"/> to <see cref="JToken"/>.
|
||||
/// </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>
|
||||
@@ -1707,7 +1707,7 @@ namespace Newtonsoft.Json.Linq
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Performs an implicit conversion from <see cref="Nullable{UInt16}"/> to <see cref="JToken"/>.
|
||||
/// Performs an implicit conversion from <see cref="Nullable{T}"/> of <see cref="UInt16"/> to <see cref="JToken"/>.
|
||||
/// </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>
|
||||
@@ -1718,7 +1718,7 @@ namespace Newtonsoft.Json.Linq
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Performs an implicit conversion from <see cref="Nullable{UInt32}"/> to <see cref="JToken"/>.
|
||||
/// Performs an implicit conversion from <see cref="Nullable{T}"/> of <see cref="UInt32"/> to <see cref="JToken"/>.
|
||||
/// </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>
|
||||
@@ -1729,7 +1729,7 @@ namespace Newtonsoft.Json.Linq
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Performs an implicit conversion from <see cref="Nullable{UInt64}"/> to <see cref="JToken"/>.
|
||||
/// Performs an implicit conversion from <see cref="Nullable{T}"/> of <see cref="UInt64"/> to <see cref="JToken"/>.
|
||||
/// </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>
|
||||
@@ -1792,7 +1792,7 @@ namespace Newtonsoft.Json.Linq
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Performs an implicit conversion from <see cref="Byte"/>[] to <see cref="Newtonsoft.Json.Linq.JToken"/>.
|
||||
/// Performs an implicit conversion from <see cref="Byte"/>[] to <see cref="JToken"/>.
|
||||
/// </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>
|
||||
@@ -1802,7 +1802,7 @@ namespace Newtonsoft.Json.Linq
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Performs an implicit conversion from <see cref="T:System.Uri"/> to <see cref="Newtonsoft.Json.Linq.JToken"/>.
|
||||
/// Performs an implicit conversion from <see cref="Uri"/> to <see cref="JToken"/>.
|
||||
/// </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>
|
||||
@@ -1812,7 +1812,7 @@ namespace Newtonsoft.Json.Linq
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Performs an implicit conversion from <see cref="T:System.TimeSpan"/> to <see cref="Newtonsoft.Json.Linq.JToken"/>.
|
||||
/// Performs an implicit conversion from <see cref="TimeSpan"/> to <see cref="JToken"/>.
|
||||
/// </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>
|
||||
@@ -1822,7 +1822,7 @@ namespace Newtonsoft.Json.Linq
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Performs an implicit conversion from <see cref="Nullable{TimeSpan}"/> to <see cref="Newtonsoft.Json.Linq.JToken"/>.
|
||||
/// Performs an implicit conversion from <see cref="Nullable{T}"/> of <see cref="TimeSpan"/> to <see cref="JToken"/>.
|
||||
/// </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>
|
||||
@@ -1832,7 +1832,7 @@ namespace Newtonsoft.Json.Linq
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Performs an implicit conversion from <see cref="T:System.Guid"/> to <see cref="Newtonsoft.Json.Linq.JToken"/>.
|
||||
/// Performs an implicit conversion from <see cref="Guid"/> to <see cref="JToken"/>.
|
||||
/// </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>
|
||||
@@ -1842,7 +1842,7 @@ namespace Newtonsoft.Json.Linq
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Performs an implicit conversion from <see cref="Nullable{Guid}"/> to <see cref="Newtonsoft.Json.Linq.JToken"/>.
|
||||
/// Performs an implicit conversion from <see cref="Nullable{T}"/> of <see cref="Guid"/> to <see cref="JToken"/>.
|
||||
/// </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>
|
||||
@@ -1870,9 +1870,9 @@ namespace Newtonsoft.Json.Linq
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Creates an <see cref="JsonReader"/> for this token.
|
||||
/// Creates a <see cref="JsonReader"/> for this token.
|
||||
/// </summary>
|
||||
/// <returns>An <see cref="JsonReader"/> that can be used to read this token and its descendants.</returns>
|
||||
/// <returns>A <see cref="JsonReader"/> that can be used to read this token and its descendants.</returns>
|
||||
public JsonReader CreateReader()
|
||||
{
|
||||
return new JTokenReader(this);
|
||||
@@ -1897,7 +1897,7 @@ namespace Newtonsoft.Json.Linq
|
||||
/// Creates a <see cref="JToken"/> from an object.
|
||||
/// </summary>
|
||||
/// <param name="o">The object that will be used to create <see cref="JToken"/>.</param>
|
||||
/// <returns>A <see cref="JToken"/> with the value of the specified object</returns>
|
||||
/// <returns>A <see cref="JToken"/> with the value of the specified object.</returns>
|
||||
public static JToken FromObject(object o)
|
||||
{
|
||||
return FromObjectInternal(o, JsonSerializer.CreateDefault());
|
||||
@@ -1908,14 +1908,14 @@ namespace Newtonsoft.Json.Linq
|
||||
/// </summary>
|
||||
/// <param name="o">The object that will be used to create <see cref="JToken"/>.</param>
|
||||
/// <param name="jsonSerializer">The <see cref="JsonSerializer"/> that will be used when reading the object.</param>
|
||||
/// <returns>A <see cref="JToken"/> with the value of the specified object</returns>
|
||||
/// <returns>A <see cref="JToken"/> with the value of the specified object.</returns>
|
||||
public static JToken FromObject(object o, JsonSerializer jsonSerializer)
|
||||
{
|
||||
return FromObjectInternal(o, jsonSerializer);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Creates the specified .NET type from the <see cref="JToken"/>.
|
||||
/// Creates an instance of the specified .NET type from the <see cref="JToken"/>.
|
||||
/// </summary>
|
||||
/// <typeparam name="T">The object type that the token will be deserialized to.</typeparam>
|
||||
/// <returns>The new object created from the JSON value.</returns>
|
||||
@@ -1925,7 +1925,7 @@ namespace Newtonsoft.Json.Linq
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Creates the specified .NET type from the <see cref="JToken"/>.
|
||||
/// Creates an instance of the specified .NET type from the <see cref="JToken"/>.
|
||||
/// </summary>
|
||||
/// <param name="objectType">The object type that the token will be deserialized to.</param>
|
||||
/// <returns>The new object created from the JSON value.</returns>
|
||||
@@ -2048,7 +2048,7 @@ namespace Newtonsoft.Json.Linq
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Creates the specified .NET type from the <see cref="JToken"/> using the specified <see cref="JsonSerializer"/>.
|
||||
/// Creates an instance of the specified .NET type from the <see cref="JToken"/> using the specified <see cref="JsonSerializer"/>.
|
||||
/// </summary>
|
||||
/// <typeparam name="T">The object type that the token will be deserialized to.</typeparam>
|
||||
/// <param name="jsonSerializer">The <see cref="JsonSerializer"/> that will be used when creating the object.</param>
|
||||
@@ -2059,7 +2059,7 @@ namespace Newtonsoft.Json.Linq
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Creates the specified .NET type from the <see cref="JToken"/> using the specified <see cref="JsonSerializer"/>.
|
||||
/// Creates an instance of the specified .NET type from the <see cref="JToken"/> using the specified <see cref="JsonSerializer"/>.
|
||||
/// </summary>
|
||||
/// <param name="objectType">The object type that the token will be deserialized to.</param>
|
||||
/// <param name="jsonSerializer">The <see cref="JsonSerializer"/> that will be used when creating the object.</param>
|
||||
@@ -2077,9 +2077,9 @@ namespace Newtonsoft.Json.Linq
|
||||
/// <summary>
|
||||
/// Creates a <see cref="JToken"/> from a <see cref="JsonReader"/>.
|
||||
/// </summary>
|
||||
/// <param name="reader">An <see cref="JsonReader"/> positioned at the token to read into this <see cref="JToken"/>.</param>
|
||||
/// <param name="reader">A <see cref="JsonReader"/> positioned at the token to read into this <see cref="JToken"/>.</param>
|
||||
/// <returns>
|
||||
/// An <see cref="JToken"/> that contains the token and its descendant tokens
|
||||
/// A <see cref="JToken"/> that contains the token and its descendant tokens
|
||||
/// that were read from the reader. The runtime type of the token is determined
|
||||
/// by the token type of the first token encountered in the reader.
|
||||
/// </returns>
|
||||
@@ -2093,9 +2093,9 @@ namespace Newtonsoft.Json.Linq
|
||||
/// </summary>
|
||||
/// <param name="reader">An <see cref="JsonReader"/> positioned at the token to read into this <see cref="JToken"/>.</param>
|
||||
/// <param name="settings">The <see cref="JsonLoadSettings"/> used to load the JSON.
|
||||
/// If this is null, default load settings will be used.</param>
|
||||
/// If this is <c>null</c>, default load settings will be used.</param>
|
||||
/// <returns>
|
||||
/// An <see cref="JToken"/> that contains the token and its descendant tokens
|
||||
/// A <see cref="JToken"/> that contains the token and its descendant tokens
|
||||
/// that were read from the reader. The runtime type of the token is determined
|
||||
/// by the token type of the first token encountered in the reader.
|
||||
/// </returns>
|
||||
@@ -2168,7 +2168,7 @@ namespace Newtonsoft.Json.Linq
|
||||
/// </summary>
|
||||
/// <param name="json">A <see cref="String"/> that contains JSON.</param>
|
||||
/// <param name="settings">The <see cref="JsonLoadSettings"/> used to load the JSON.
|
||||
/// If this is null, default load settings will be used.</param>
|
||||
/// If this is <c>null</c>, default load settings will be used.</param>
|
||||
/// <returns>A <see cref="JToken"/> populated from the string that contains JSON.</returns>
|
||||
public static JToken Parse(string json, JsonLoadSettings settings)
|
||||
{
|
||||
@@ -2188,11 +2188,11 @@ namespace Newtonsoft.Json.Linq
|
||||
/// <summary>
|
||||
/// Creates a <see cref="JToken"/> from a <see cref="JsonReader"/>.
|
||||
/// </summary>
|
||||
/// <param name="reader">An <see cref="JsonReader"/> positioned at the token to read into this <see cref="JToken"/>.</param>
|
||||
/// <param name="reader">A <see cref="JsonReader"/> positioned at the token to read into this <see cref="JToken"/>.</param>
|
||||
/// <param name="settings">The <see cref="JsonLoadSettings"/> used to load the JSON.
|
||||
/// If this is null, default load settings will be used.</param>
|
||||
/// If this is <c>null</c>, default load settings will be used.</param>
|
||||
/// <returns>
|
||||
/// An <see cref="JToken"/> that contains the token and its descendant tokens
|
||||
/// A <see cref="JToken"/> that contains the token and its descendant tokens
|
||||
/// that were read from the reader. The runtime type of the token is determined
|
||||
/// by the token type of the first token encountered in the reader.
|
||||
/// </returns>
|
||||
@@ -2204,9 +2204,9 @@ namespace Newtonsoft.Json.Linq
|
||||
/// <summary>
|
||||
/// Creates a <see cref="JToken"/> from a <see cref="JsonReader"/>.
|
||||
/// </summary>
|
||||
/// <param name="reader">An <see cref="JsonReader"/> positioned at the token to read into this <see cref="JToken"/>.</param>
|
||||
/// <param name="reader">A <see cref="JsonReader"/> positioned at the token to read into this <see cref="JToken"/>.</param>
|
||||
/// <returns>
|
||||
/// An <see cref="JToken"/> that contains the token and its descendant tokens
|
||||
/// A <see cref="JToken"/> that contains the token and its descendant tokens
|
||||
/// that were read from the reader. The runtime type of the token is determined
|
||||
/// by the token type of the first token encountered in the reader.
|
||||
/// </returns>
|
||||
@@ -2286,7 +2286,7 @@ namespace Newtonsoft.Json.Linq
|
||||
/// <param name="path">
|
||||
/// A <see cref="String"/> that contains a JPath expression.
|
||||
/// </param>
|
||||
/// <returns>A <see cref="JToken"/>, or null.</returns>
|
||||
/// <returns>A <see cref="JToken"/>, or <c>null</c>.</returns>
|
||||
public JToken SelectToken(string path)
|
||||
{
|
||||
return SelectToken(path, false);
|
||||
@@ -2324,7 +2324,7 @@ namespace Newtonsoft.Json.Linq
|
||||
/// <param name="path">
|
||||
/// A <see cref="String"/> that contains a JPath expression.
|
||||
/// </param>
|
||||
/// <returns>An <see cref="IEnumerable{JToken}"/> that contains the selected elements.</returns>
|
||||
/// <returns>An <see cref="IEnumerable{T}"/> of <see cref="JToken"/> that contains the selected elements.</returns>
|
||||
public IEnumerable<JToken> SelectTokens(string path)
|
||||
{
|
||||
return SelectTokens(path, false);
|
||||
@@ -2337,7 +2337,7 @@ namespace Newtonsoft.Json.Linq
|
||||
/// A <see cref="String"/> that contains a JPath expression.
|
||||
/// </param>
|
||||
/// <param name="errorWhenNoMatch">A flag to indicate whether an error should be thrown if no tokens are found when evaluating part of the expression.</param>
|
||||
/// <returns>An <see cref="IEnumerable{JToken}"/> that contains the selected elements.</returns>
|
||||
/// <returns>An <see cref="IEnumerable{T}"/> of <see cref="JToken"/> that contains the selected elements.</returns>
|
||||
public IEnumerable<JToken> SelectTokens(string path, bool errorWhenNoMatch)
|
||||
{
|
||||
JPath p = new JPath(path);
|
||||
@@ -2346,11 +2346,11 @@ namespace Newtonsoft.Json.Linq
|
||||
|
||||
#if !(NET35 || NET20 || PORTABLE40)
|
||||
/// <summary>
|
||||
/// Returns the <see cref="T:System.Dynamic.DynamicMetaObject"/> responsible for binding operations performed on this object.
|
||||
/// Returns the <see cref="DynamicMetaObject"/> responsible for binding operations performed on this object.
|
||||
/// </summary>
|
||||
/// <param name="parameter">The expression tree representation of the runtime value.</param>
|
||||
/// <returns>
|
||||
/// The <see cref="T:System.Dynamic.DynamicMetaObject"/> to bind this object.
|
||||
/// The <see cref="DynamicMetaObject"/> to bind this object.
|
||||
/// </returns>
|
||||
protected virtual DynamicMetaObject GetMetaObject(Expression parameter)
|
||||
{
|
||||
@@ -2358,11 +2358,11 @@ namespace Newtonsoft.Json.Linq
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns the <see cref="T:System.Dynamic.DynamicMetaObject"/> responsible for binding operations performed on this object.
|
||||
/// Returns the <see cref="DynamicMetaObject"/> responsible for binding operations performed on this object.
|
||||
/// </summary>
|
||||
/// <param name="parameter">The expression tree representation of the runtime value.</param>
|
||||
/// <returns>
|
||||
/// The <see cref="T:System.Dynamic.DynamicMetaObject"/> to bind this object.
|
||||
/// The <see cref="DynamicMetaObject"/> to bind this object.
|
||||
/// </returns>
|
||||
DynamicMetaObject IDynamicMetaObjectProvider.GetMetaObject(Expression parameter)
|
||||
{
|
||||
@@ -2505,7 +2505,7 @@ namespace Newtonsoft.Json.Linq
|
||||
/// Gets a collection of annotations of the specified type for this <see cref="JToken"/>.
|
||||
/// </summary>
|
||||
/// <typeparam name="T">The type of the annotations to retrieve.</typeparam>
|
||||
/// <returns>An <see cref="IEnumerable{T}"/> that contains the annotations for this <see cref="JToken"/>.</returns>
|
||||
/// <returns>An <see cref="IEnumerable{T}"/> that contains the annotations for this <see cref="JToken"/>.</returns>
|
||||
public IEnumerable<T> Annotations<T>() where T : class
|
||||
{
|
||||
if (_annotations == null)
|
||||
|
||||
@@ -48,9 +48,9 @@ namespace Newtonsoft.Json.Linq
|
||||
/// <summary>
|
||||
/// Returns a hash code for the specified object.
|
||||
/// </summary>
|
||||
/// <param name="obj">The <see cref="T:System.Object"/> for which a hash code is to be returned.</param>
|
||||
/// <param name="obj">The <see cref="System.Object"/> for which a hash code is to be returned.</param>
|
||||
/// <returns>A hash code for the specified object.</returns>
|
||||
/// <exception cref="T:System.ArgumentNullException">The type of <paramref name="obj"/> is a reference type and <paramref name="obj"/> is null.</exception>
|
||||
/// <exception cref="System.ArgumentNullException">The type of <paramref name="obj"/> is a reference type and <paramref name="obj"/> is <c>null</c>.</exception>
|
||||
public int GetHashCode(JToken obj)
|
||||
{
|
||||
if (obj == null)
|
||||
|
||||
@@ -65,7 +65,7 @@ namespace Newtonsoft.Json.Linq
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Reads the next JSON token from the stream.
|
||||
/// Reads the next JSON token from the underlying <see cref="JToken"/>.
|
||||
/// </summary>
|
||||
/// <returns>
|
||||
/// <c>true</c> if the next token was read successfully; <c>false</c> if there are no more tokens to read.
|
||||
|
||||
@@ -52,9 +52,9 @@ namespace Newtonsoft.Json.Linq
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the token being writen.
|
||||
/// Gets the token being written.
|
||||
/// </summary>
|
||||
/// <value>The token being writen.</value>
|
||||
/// <value>The token being written.</value>
|
||||
public JToken Token
|
||||
{
|
||||
get
|
||||
@@ -88,15 +88,18 @@ namespace Newtonsoft.Json.Linq
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Flushes whatever is in the buffer to the underlying streams and also flushes the underlying stream.
|
||||
/// Flushes whatever is in the buffer to the underlying <see cref="JContainer"/>.
|
||||
/// </summary>
|
||||
public override void Flush()
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Closes this stream and the underlying stream.
|
||||
/// Closes this writer.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Setting <see cref="JsonWriter.CloseOutput"/> to <c>true</c> has no additional effect, since the underlying <see cref="JContainer"/> is a type that cannot be closed.
|
||||
/// </remarks>
|
||||
public override void Close()
|
||||
{
|
||||
base.Close();
|
||||
@@ -216,7 +219,7 @@ namespace Newtonsoft.Json.Linq
|
||||
#region WriteValue methods
|
||||
/// <summary>
|
||||
/// Writes a <see cref="Object"/> value.
|
||||
/// An error will raised if the value cannot be written as a single JSON token.
|
||||
/// An error will be raised if the value cannot be written as a single JSON token.
|
||||
/// </summary>
|
||||
/// <param name="value">The <see cref="Object"/> value to write.</param>
|
||||
public override void WriteValue(object value)
|
||||
|
||||
@@ -728,7 +728,7 @@ namespace Newtonsoft.Json.Linq
|
||||
/// Writes this token to a <see cref="JsonWriter"/>.
|
||||
/// </summary>
|
||||
/// <param name="writer">A <see cref="JsonWriter"/> into which this method will write.</param>
|
||||
/// <param name="converters">A collection of <see cref="JsonConverter"/> which will be used when writing the token.</param>
|
||||
/// <param name="converters">A collection of <see cref="JsonConverter"/>s which will be used when writing the token.</param>
|
||||
public override void WriteTo(JsonWriter writer, params JsonConverter[] converters)
|
||||
{
|
||||
if (converters != null && converters.Length > 0 && _value != null)
|
||||
@@ -863,15 +863,12 @@ namespace Newtonsoft.Json.Linq
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Determines whether the specified <see cref="T:System.Object"/> is equal to the current <see cref="T:System.Object"/>.
|
||||
/// Determines whether the specified <see cref="Object"/> is equal to the current <see cref="Object"/>.
|
||||
/// </summary>
|
||||
/// <param name="obj">The <see cref="T:System.Object"/> to compare with the current <see cref="T:System.Object"/>.</param>
|
||||
/// <param name="obj">The <see cref="Object"/> to compare with the current <see cref="Object"/>.</param>
|
||||
/// <returns>
|
||||
/// <c>true</c> if the specified <see cref="T:System.Object"/> is equal to the current <see cref="T:System.Object"/>; otherwise, <c>false</c>.
|
||||
/// <c>true</c> if the specified <see cref="Object"/> is equal to the current <see cref="Object"/>; otherwise, <c>false</c>.
|
||||
/// </returns>
|
||||
/// <exception cref="T:System.NullReferenceException">
|
||||
/// The <paramref name="obj"/> parameter is null.
|
||||
/// </exception>
|
||||
public override bool Equals(object obj)
|
||||
{
|
||||
if (obj == null)
|
||||
@@ -892,7 +889,7 @@ namespace Newtonsoft.Json.Linq
|
||||
/// Serves as a hash function for a particular type.
|
||||
/// </summary>
|
||||
/// <returns>
|
||||
/// A hash code for the current <see cref="T:System.Object"/>.
|
||||
/// A hash code for the current <see cref="Object"/>.
|
||||
/// </returns>
|
||||
public override int GetHashCode()
|
||||
{
|
||||
@@ -905,10 +902,10 @@ namespace Newtonsoft.Json.Linq
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns a <see cref="System.String"/> that represents this instance.
|
||||
/// Returns a <see cref="String"/> that represents this instance.
|
||||
/// </summary>
|
||||
/// <returns>
|
||||
/// A <see cref="System.String"/> that represents this instance.
|
||||
/// A <see cref="String"/> that represents this instance.
|
||||
/// </returns>
|
||||
public override string ToString()
|
||||
{
|
||||
@@ -921,11 +918,11 @@ namespace Newtonsoft.Json.Linq
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns a <see cref="System.String"/> that represents this instance.
|
||||
/// Returns a <see cref="String"/> that represents this instance.
|
||||
/// </summary>
|
||||
/// <param name="format">The format.</param>
|
||||
/// <returns>
|
||||
/// A <see cref="System.String"/> that represents this instance.
|
||||
/// A <see cref="String"/> that represents this instance.
|
||||
/// </returns>
|
||||
public string ToString(string format)
|
||||
{
|
||||
@@ -933,11 +930,11 @@ namespace Newtonsoft.Json.Linq
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns a <see cref="System.String"/> that represents this instance.
|
||||
/// Returns a <see cref="String"/> that represents this instance.
|
||||
/// </summary>
|
||||
/// <param name="formatProvider">The format provider.</param>
|
||||
/// <returns>
|
||||
/// A <see cref="System.String"/> that represents this instance.
|
||||
/// A <see cref="String"/> that represents this instance.
|
||||
/// </returns>
|
||||
public string ToString(IFormatProvider formatProvider)
|
||||
{
|
||||
@@ -945,12 +942,12 @@ namespace Newtonsoft.Json.Linq
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns a <see cref="System.String"/> that represents this instance.
|
||||
/// Returns a <see cref="String"/> that represents this instance.
|
||||
/// </summary>
|
||||
/// <param name="format">The format.</param>
|
||||
/// <param name="formatProvider">The format provider.</param>
|
||||
/// <returns>
|
||||
/// A <see cref="System.String"/> that represents this instance.
|
||||
/// A <see cref="String"/> that represents this instance.
|
||||
/// </returns>
|
||||
public string ToString(string format, IFormatProvider formatProvider)
|
||||
{
|
||||
@@ -972,11 +969,11 @@ namespace Newtonsoft.Json.Linq
|
||||
|
||||
#if !(NET35 || NET20 || PORTABLE40)
|
||||
/// <summary>
|
||||
/// Returns the <see cref="T:System.Dynamic.DynamicMetaObject"/> responsible for binding operations performed on this object.
|
||||
/// Returns the <see cref="DynamicMetaObject"/> responsible for binding operations performed on this object.
|
||||
/// </summary>
|
||||
/// <param name="parameter">The expression tree representation of the runtime value.</param>
|
||||
/// <returns>
|
||||
/// The <see cref="T:System.Dynamic.DynamicMetaObject"/> to bind this object.
|
||||
/// The <see cref="DynamicMetaObject"/> to bind this object.
|
||||
/// </returns>
|
||||
protected override DynamicMetaObject GetMetaObject(Expression parameter)
|
||||
{
|
||||
@@ -1078,8 +1075,8 @@ namespace Newtonsoft.Json.Linq
|
||||
/// Greater than zero
|
||||
/// This instance is greater than <paramref name="obj"/>.
|
||||
/// </returns>
|
||||
/// <exception cref="T:System.ArgumentException">
|
||||
/// <paramref name="obj"/> is not the same type as this instance.
|
||||
/// <exception cref="ArgumentException">
|
||||
/// <paramref name="obj"/> is not of the same type as this instance.
|
||||
/// </exception>
|
||||
public int CompareTo(JValue obj)
|
||||
{
|
||||
|
||||
@@ -50,7 +50,7 @@ namespace Newtonsoft.Json
|
||||
/// <summary>
|
||||
/// All public and private fields are serialized. Members can be excluded using <see cref="JsonIgnoreAttribute"/> or <see cref="NonSerializedAttribute"/>.
|
||||
/// This member serialization mode can also be set by marking the class with <see cref="SerializableAttribute"/>
|
||||
/// and setting IgnoreSerializableAttribute on <see cref="DefaultContractResolver"/> to false.
|
||||
/// and setting IgnoreSerializableAttribute on <see cref="DefaultContractResolver"/> to <c>false</c>.
|
||||
/// </summary>
|
||||
Fields = 2
|
||||
#pragma warning restore 1584,1711,1572,1581,1580,1574
|
||||
|
||||
@@ -31,7 +31,7 @@ namespace Newtonsoft.Json
|
||||
{
|
||||
/// <summary>
|
||||
/// Specifies reference handling options for the <see cref="JsonSerializer"/>.
|
||||
/// Note that references cannot be preserved when a value is set via a non-default constructor such as types that implement <c>ISerializable</c>.
|
||||
/// Note that references cannot be preserved when a value is set via a non-default constructor such as types that implement <see cref="T:System.Runtime.Serialization.ISerializable"/>.
|
||||
/// </summary>
|
||||
/// <example>
|
||||
/// <code lang="cs" source="..\Src\Newtonsoft.Json.Tests\Documentation\SerializationTests.cs" region="PreservingObjectReferencesOn" title="Preserve Object References" />
|
||||
|
||||
@@ -59,7 +59,7 @@ namespace Newtonsoft.Json.Schema
|
||||
public bool? Required { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets whether the object is read only.
|
||||
/// Gets or sets whether the object is read-only.
|
||||
/// </summary>
|
||||
public bool? ReadOnly { get; set; }
|
||||
|
||||
@@ -103,9 +103,9 @@ namespace Newtonsoft.Json.Schema
|
||||
public int? MaximumLength { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets a number that the value should be divisble by.
|
||||
/// Gets or sets a number that the value should be divisible by.
|
||||
/// </summary>
|
||||
/// <value>A number that the value should be divisble by.</value>
|
||||
/// <value>A number that the value should be divisible by.</value>
|
||||
public double? DivisibleBy { get; set; }
|
||||
|
||||
/// <summary>
|
||||
@@ -121,15 +121,15 @@ namespace Newtonsoft.Json.Schema
|
||||
public double? Maximum { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets a flag indicating whether the value can not equal the number defined by the "minimum" attribute.
|
||||
/// Gets or sets a flag indicating whether the value can not equal the number defined by the <c>minimum</c> attribute (<see cref="JsonSchema.Minimum"/>).
|
||||
/// </summary>
|
||||
/// <value>A flag indicating whether the value can not equal the number defined by the "minimum" attribute.</value>
|
||||
/// <value>A flag indicating whether the value can not equal the number defined by the <c>minimum</c> attribute (<see cref="JsonSchema.Minimum"/>).</value>
|
||||
public bool? ExclusiveMinimum { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets a flag indicating whether the value can not equal the number defined by the "maximum" attribute.
|
||||
/// Gets or sets a flag indicating whether the value can not equal the number defined by the <c>maximum</c> attribute (<see cref="JsonSchema.Maximum"/>).
|
||||
/// </summary>
|
||||
/// <value>A flag indicating whether the value can not equal the number defined by the "maximum" attribute.</value>
|
||||
/// <value>A flag indicating whether the value can not equal the number defined by the <c>maximum</c> attribute (<see cref="JsonSchema.Maximum"/>).</value>
|
||||
public bool? ExclusiveMaximum { get; set; }
|
||||
|
||||
/// <summary>
|
||||
@@ -218,7 +218,7 @@ namespace Newtonsoft.Json.Schema
|
||||
/// <summary>
|
||||
/// Gets or sets disallowed types.
|
||||
/// </summary>
|
||||
/// <value>The disallow types.</value>
|
||||
/// <value>The disallowed types.</value>
|
||||
public JsonSchemaType? Disallow { get; set; }
|
||||
|
||||
/// <summary>
|
||||
@@ -288,21 +288,21 @@ namespace Newtonsoft.Json.Schema
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Load a <see cref="JsonSchema"/> from a string that contains schema JSON.
|
||||
/// Load a <see cref="JsonSchema"/> from a string that contains JSON Schema.
|
||||
/// </summary>
|
||||
/// <param name="json">A <see cref="String"/> that contains JSON.</param>
|
||||
/// <returns>A <see cref="JsonSchema"/> populated from the string that contains JSON.</returns>
|
||||
/// <param name="json">A <see cref="String"/> that contains JSON Schema.</param>
|
||||
/// <returns>A <see cref="JsonSchema"/> populated from the string that contains JSON Schema.</returns>
|
||||
public static JsonSchema Parse(string json)
|
||||
{
|
||||
return Parse(json, new JsonSchemaResolver());
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Parses the specified json.
|
||||
/// Load a <see cref="JsonSchema"/> from a string that contains JSON Schema using the specified <see cref="JsonSchemaResolver"/>.
|
||||
/// </summary>
|
||||
/// <param name="json">The json.</param>
|
||||
/// <param name="json">A <see cref="String"/> that contains JSON Schema.</param>
|
||||
/// <param name="resolver">The resolver.</param>
|
||||
/// <returns>A <see cref="JsonSchema"/> populated from the string that contains JSON.</returns>
|
||||
/// <returns>A <see cref="JsonSchema"/> populated from the string that contains JSON Schema.</returns>
|
||||
public static JsonSchema Parse(string json, JsonSchemaResolver resolver)
|
||||
{
|
||||
ValidationUtils.ArgumentNotNull(json, nameof(json));
|
||||
@@ -337,10 +337,10 @@ namespace Newtonsoft.Json.Schema
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns a <see cref="T:System.String"/> that represents the current <see cref="T:System.Object"/>.
|
||||
/// Returns a <see cref="String"/> that represents the current <see cref="Object"/>.
|
||||
/// </summary>
|
||||
/// <returns>
|
||||
/// A <see cref="T:System.String"/> that represents the current <see cref="T:System.Object"/>.
|
||||
/// A <see cref="String"/> that represents the current <see cref="Object"/>.
|
||||
/// </returns>
|
||||
public override string ToString()
|
||||
{
|
||||
|
||||
@@ -82,7 +82,7 @@ namespace Newtonsoft.Json.Schema
|
||||
/// with a specified error message and a reference to the inner exception that is the cause of this exception.
|
||||
/// </summary>
|
||||
/// <param name="message">The error message that explains the reason for the exception.</param>
|
||||
/// <param name="innerException">The exception that is the cause of the current exception, or a null reference (Nothing in Visual Basic) if no inner exception is specified.</param>
|
||||
/// <param name="innerException">The exception that is the cause of the current exception, or <c>null</c> if no inner exception is specified.</param>
|
||||
public JsonSchemaException(string message, Exception innerException)
|
||||
: base(message, innerException)
|
||||
{
|
||||
@@ -92,10 +92,10 @@ namespace Newtonsoft.Json.Schema
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="JsonSchemaException"/> class.
|
||||
/// </summary>
|
||||
/// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo"/> that holds the serialized object data about the exception being thrown.</param>
|
||||
/// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext"/> that contains contextual information about the source or destination.</param>
|
||||
/// <exception cref="T:System.ArgumentNullException">The <paramref name="info"/> parameter is null. </exception>
|
||||
/// <exception cref="T:System.Runtime.Serialization.SerializationException">The class name is null or <see cref="P:System.Exception.HResult"/> is zero (0). </exception>
|
||||
/// <param name="info">The <see cref="SerializationInfo"/> that holds the serialized object data about the exception being thrown.</param>
|
||||
/// <param name="context">The <see cref="StreamingContext"/> that contains contextual information about the source or destination.</param>
|
||||
/// <exception cref="ArgumentNullException">The <paramref name="info"/> parameter is <c>null</c>.</exception>
|
||||
/// <exception cref="SerializationException">The class name is <c>null</c> or <see cref="Exception.HResult"/> is zero (0).</exception>
|
||||
public JsonSchemaException(SerializationInfo info, StreamingContext context)
|
||||
: base(info, context)
|
||||
{
|
||||
|
||||
@@ -211,7 +211,7 @@ namespace Newtonsoft.Json.Serialization
|
||||
/// If set to <c>true</c> the <see cref="DefaultContractResolver"/> will use a cached shared with other resolvers of the same type.
|
||||
/// Sharing the cache will significantly improve performance with multiple resolver instances because expensive reflection will only
|
||||
/// happen once. This setting can cause unexpected behavior if different instances of the resolver are suppose to produce different
|
||||
/// results. When set to false it is highly recommended to reuse <see cref="DefaultContractResolver"/> instances with the <see cref="JsonSerializer"/>.
|
||||
/// results. When set to <c>false</c> it is highly recommended to reuse <see cref="DefaultContractResolver"/> instances with the <see cref="JsonSerializer"/>.
|
||||
/// </param>
|
||||
[ObsoleteAttribute("DefaultContractResolver(bool) is obsolete. Use the parameterless constructor and cache instances of the contract resolver within your application for optimal performance.")]
|
||||
public DefaultContractResolver(bool shareCache)
|
||||
@@ -1510,7 +1510,7 @@ namespace Newtonsoft.Json.Serialization
|
||||
}
|
||||
|
||||
// resolve converter for property
|
||||
// the class type might have a converter but the property converter takes presidence
|
||||
// the class type might have a converter but the property converter takes precedence
|
||||
property.Converter = JsonTypeReflector.GetJsonConverter(attributeProvider);
|
||||
property.MemberConverter = JsonTypeReflector.GetJsonConverter(attributeProvider);
|
||||
|
||||
|
||||
@@ -177,8 +177,8 @@ namespace Newtonsoft.Json.Serialization
|
||||
/// <summary>
|
||||
/// When overridden in a derived class, controls the binding of a serialized object to a type.
|
||||
/// </summary>
|
||||
/// <param name="assemblyName">Specifies the <see cref="T:System.Reflection.Assembly"/> name of the serialized object.</param>
|
||||
/// <param name="typeName">Specifies the <see cref="T:System.Type"/> name of the serialized object.</param>
|
||||
/// <param name="assemblyName">Specifies the <see cref="Assembly"/> name of the serialized object.</param>
|
||||
/// <param name="typeName">Specifies the <see cref="System.Type"/> name of the serialized object.</param>
|
||||
/// <returns>
|
||||
/// The type of the object the formatter creates a new instance of.
|
||||
/// </returns>
|
||||
@@ -191,8 +191,8 @@ namespace Newtonsoft.Json.Serialization
|
||||
/// When overridden in a derived class, controls the binding of a serialized object to a type.
|
||||
/// </summary>
|
||||
/// <param name="serializedType">The type of the object the formatter creates a new instance of.</param>
|
||||
/// <param name="assemblyName">Specifies the <see cref="T:System.Reflection.Assembly"/> name of the serialized object. </param>
|
||||
/// <param name="typeName">Specifies the <see cref="T:System.Type"/> name of the serialized object. </param>
|
||||
/// <param name="assemblyName">Specifies the <see cref="Assembly"/> name of the serialized object.</param>
|
||||
/// <param name="typeName">Specifies the <see cref="System.Type"/> name of the serialized object.</param>
|
||||
public
|
||||
#if !(NET35 || NET20)
|
||||
override
|
||||
|
||||
@@ -12,8 +12,8 @@ namespace Newtonsoft.Json.Serialization
|
||||
{
|
||||
/// <summary>
|
||||
/// Gets the <see cref="TraceLevel"/> that will be used to filter the trace messages passed to the writer.
|
||||
/// For example a filter level of <code>Info</code> will exclude <code>Verbose</code> messages and include <code>Info</code>,
|
||||
/// <code>Warning</code> and <code>Error</code> messages.
|
||||
/// For example a filter level of <see cref="TraceLevel.Info"/> will exclude <see cref="TraceLevel.Verbose"/> messages and include <see cref="TraceLevel.Info"/>,
|
||||
/// <see cref="TraceLevel.Warning"/> and <see cref="TraceLevel.Error"/> messages.
|
||||
/// </summary>
|
||||
/// <value>
|
||||
/// The <see cref="TraceLevel"/> that will be used to filter the trace messages passed to the writer.
|
||||
|
||||
@@ -36,7 +36,7 @@ namespace Newtonsoft.Json.Serialization
|
||||
/// <summary>
|
||||
/// Returns a collection of all of the attributes, or an empty collection if there are no attributes.
|
||||
/// </summary>
|
||||
/// <param name="inherit">When true, look up the hierarchy chain for the inherited custom attribute.</param>
|
||||
/// <param name="inherit">When <c>true</c>, look up the hierarchy chain for the inherited custom attribute.</param>
|
||||
/// <returns>A collection of <see cref="Attribute"/>s, or an empty collection.</returns>
|
||||
IList<Attribute> GetAttributes(bool inherit);
|
||||
|
||||
@@ -44,7 +44,7 @@ namespace Newtonsoft.Json.Serialization
|
||||
/// Returns a collection of attributes, identified by type, or an empty collection if there are no attributes.
|
||||
/// </summary>
|
||||
/// <param name="attributeType">The type of the attributes.</param>
|
||||
/// <param name="inherit">When true, look up the hierarchy chain for the inherited custom attribute.</param>
|
||||
/// <param name="inherit">When <c>true</c>, look up the hierarchy chain for the inherited custom attribute.</param>
|
||||
/// <returns>A collection of <see cref="Attribute"/>s, or an empty collection.</returns>
|
||||
IList<Attribute> GetAttributes(Type attributeType, bool inherit);
|
||||
}
|
||||
|
||||
@@ -28,7 +28,7 @@ using System;
|
||||
namespace Newtonsoft.Json.Serialization
|
||||
{
|
||||
/// <summary>
|
||||
/// Used by <see cref="JsonSerializer"/> to resolves a <see cref="JsonContract"/> for a given <see cref="Type"/>.
|
||||
/// Used by <see cref="JsonSerializer"/> to resolve a <see cref="JsonContract"/> for a given <see cref="Type"/>.
|
||||
/// </summary>
|
||||
/// <example>
|
||||
/// <code lang="cs" source="..\Src\Newtonsoft.Json.Tests\Documentation\SerializationTests.cs" region="ReducingSerializedJsonSizeContractResolverObject" title="IContractResolver Class" />
|
||||
|
||||
@@ -35,7 +35,7 @@ namespace Newtonsoft.Json.Serialization
|
||||
/// </summary>
|
||||
/// <param name="context">The serialization context.</param>
|
||||
/// <param name="reference">The reference to resolve.</param>
|
||||
/// <returns>The object that</returns>
|
||||
/// <returns>The object that was resolved from the reference.</returns>
|
||||
object ResolveReference(object context, string reference);
|
||||
|
||||
/// <summary>
|
||||
|
||||
@@ -11,8 +11,8 @@ namespace Newtonsoft.Json.Serialization
|
||||
{
|
||||
/// <summary>
|
||||
/// Gets the <see cref="TraceLevel"/> that will be used to filter the trace messages passed to the writer.
|
||||
/// For example a filter level of <code>Info</code> will exclude <code>Verbose</code> messages and include <code>Info</code>,
|
||||
/// <code>Warning</code> and <code>Error</code> messages.
|
||||
/// For example a filter level of <see cref="TraceLevel.Info"/> will exclude <see cref="TraceLevel.Verbose"/> messages and include <see cref="TraceLevel.Info"/>,
|
||||
/// <see cref="TraceLevel.Warning"/> and <see cref="TraceLevel.Error"/> messages.
|
||||
/// </summary>
|
||||
/// <value>The <see cref="TraceLevel"/> that will be used to filter the trace messages passed to the writer.</value>
|
||||
TraceLevel LevelFilter { get; }
|
||||
|
||||
@@ -302,7 +302,7 @@ namespace Newtonsoft.Json.Serialization
|
||||
public Func<object> DefaultCreator { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets a value indicating whether the default creator is non public.
|
||||
/// Gets or sets a value indicating whether the default creator is non-public.
|
||||
/// </summary>
|
||||
/// <value><c>true</c> if the default object creator is non-public; otherwise, <c>false</c>.</value>
|
||||
public bool DefaultCreatorNonPublic { get; set; }
|
||||
|
||||
@@ -35,9 +35,9 @@ namespace Newtonsoft.Json.Serialization
|
||||
public class JsonISerializableContract : JsonContainerContract
|
||||
{
|
||||
/// <summary>
|
||||
/// Gets or sets the ISerializable object constructor.
|
||||
/// Gets or sets the <see cref="ISerializable"/> object constructor.
|
||||
/// </summary>
|
||||
/// <value>The ISerializable object constructor.</value>
|
||||
/// <value>The <see cref="ISerializable"/> object constructor.</value>
|
||||
public ObjectConstructor<object> ISerializableCreator { get; set; }
|
||||
|
||||
/// <summary>
|
||||
|
||||
@@ -59,7 +59,7 @@ namespace Newtonsoft.Json.Serialization
|
||||
public JsonPropertyCollection Properties { get; private set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets the constructor parameters required for any non-default constructor
|
||||
/// Gets the constructor parameters required for any non-default constructor.
|
||||
/// </summary>
|
||||
[Obsolete("ConstructorParameters is obsolete. Use CreatorParameters instead.")]
|
||||
public JsonPropertyCollection ConstructorParameters
|
||||
@@ -68,7 +68,7 @@ namespace Newtonsoft.Json.Serialization
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets a collection of <see cref="JsonProperty"/> instances that define the parameters used with <see cref="OverrideCreator"/>.
|
||||
/// Gets a collection of <see cref="JsonProperty"/> instances that define the parameters used with <see cref="JsonObjectContract.OverrideCreator"/>.
|
||||
/// </summary>
|
||||
public JsonPropertyCollection CreatorParameters
|
||||
{
|
||||
@@ -85,8 +85,8 @@ namespace Newtonsoft.Json.Serialization
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the override constructor used to create the object.
|
||||
/// This is set when a constructor is marked up using the
|
||||
/// JsonConstructor attribute.
|
||||
/// This is set when a constructor is marked up using
|
||||
/// <see cref="JsonConstructorAttribute"/>.
|
||||
/// </summary>
|
||||
/// <value>The override constructor.</value>
|
||||
[Obsolete("OverrideConstructor is obsolete. Use OverrideCreator instead.")]
|
||||
@@ -117,7 +117,7 @@ namespace Newtonsoft.Json.Serialization
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the function used to create the object. When set this function will override <see cref="JsonContract.DefaultCreator"/>.
|
||||
/// This function is called with a collection of arguments which are defined by the <see cref="CreatorParameters"/> collection.
|
||||
/// This function is called with a collection of arguments which are defined by the <see cref="JsonObjectContract.CreatorParameters"/> collection.
|
||||
/// </summary>
|
||||
/// <value>The function used to create the object.</value>
|
||||
public ObjectConstructor<object> OverrideCreator
|
||||
|
||||
@@ -113,7 +113,7 @@ namespace Newtonsoft.Json.Serialization
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the <see cref="JsonConverter" /> for the property.
|
||||
/// If set this converter takes presidence over the contract converter for the property type.
|
||||
/// If set this converter takes precedence over the contract converter for the property type.
|
||||
/// </summary>
|
||||
/// <value>The converter.</value>
|
||||
public JsonConverter Converter { get; set; }
|
||||
@@ -235,9 +235,9 @@ namespace Newtonsoft.Json.Serialization
|
||||
public TypeNameHandling? TypeNameHandling { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets a predicate used to determine whether the property should be serialize.
|
||||
/// Gets or sets a predicate used to determine whether the property should be serialized.
|
||||
/// </summary>
|
||||
/// <value>A predicate used to determine whether the property should be serialize.</value>
|
||||
/// <value>A predicate used to determine whether the property should be serialized.</value>
|
||||
public Predicate<object> ShouldSerialize { get; set; }
|
||||
|
||||
/// <summary>
|
||||
|
||||
@@ -118,7 +118,7 @@ namespace Newtonsoft.Json.Serialization
|
||||
|
||||
/// <summary>
|
||||
/// Gets the closest matching <see cref="JsonProperty"/> object.
|
||||
/// First attempts to get an exact case match of propertyName and then
|
||||
/// First attempts to get an exact case match of <paramref name="propertyName"/> and then
|
||||
/// a case insensitive match.
|
||||
/// </summary>
|
||||
/// <param name="propertyName">Name of the property.</param>
|
||||
|
||||
@@ -173,11 +173,11 @@ namespace Newtonsoft.Json.Serialization
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Lookup and create an instance of the JsonConverter type described by the argument.
|
||||
/// Lookup and create an instance of the <see cref="JsonConverter"/> type described by the argument.
|
||||
/// </summary>
|
||||
/// <param name="converterType">The JsonConverter type to create.</param>
|
||||
/// <param name="converterType">The <see cref="JsonConverter"/> type to create.</param>
|
||||
/// <param name="converterArgs">Optional arguments to pass to an initializing constructor of the JsonConverter.
|
||||
/// If null, the default constructor is used.</param>
|
||||
/// If <c>null</c>, the default constructor is used.</param>
|
||||
public static JsonConverter CreateJsonConverterInstance(Type converterType, object[] converterArgs)
|
||||
{
|
||||
Func<object[], object> converterCreator = CreatorCache.Get(converterType);
|
||||
|
||||
@@ -16,8 +16,8 @@ namespace Newtonsoft.Json.Serialization
|
||||
|
||||
/// <summary>
|
||||
/// Gets the <see cref="TraceLevel"/> that will be used to filter the trace messages passed to the writer.
|
||||
/// For example a filter level of <code>Info</code> will exclude <code>Verbose</code> messages and include <code>Info</code>,
|
||||
/// <code>Warning</code> and <code>Error</code> messages.
|
||||
/// For example a filter level of <see cref="TraceLevel.Info"/> will exclude <see cref="TraceLevel.Verbose"/> messages and include <see cref="TraceLevel.Info"/>,
|
||||
/// <see cref="TraceLevel.Warning"/> and <see cref="TraceLevel.Error"/> messages.
|
||||
/// </summary>
|
||||
/// <value>
|
||||
/// The <see cref="TraceLevel"/> that will be used to filter the trace messages passed to the writer.
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
/// Gets the serialized name for a given property name.
|
||||
/// </summary>
|
||||
/// <param name="name">The initial property name.</param>
|
||||
/// <param name="hasSpecifiedName">A flag indicating whether the property has had a name explicitly specfied.</param>
|
||||
/// <param name="hasSpecifiedName">A flag indicating whether the property has had a name explicitly specified.</param>
|
||||
/// <returns>The serialized property name.</returns>
|
||||
public virtual string GetPropertyName(string name, bool hasSpecifiedName)
|
||||
{
|
||||
|
||||
@@ -50,7 +50,7 @@ namespace Newtonsoft.Json.Serialization
|
||||
/// <summary>
|
||||
/// Returns a collection of all of the attributes, or an empty collection if there are no attributes.
|
||||
/// </summary>
|
||||
/// <param name="inherit">When true, look up the hierarchy chain for the inherited custom attribute.</param>
|
||||
/// <param name="inherit">When <c>true</c>, look up the hierarchy chain for the inherited custom attribute.</param>
|
||||
/// <returns>A collection of <see cref="Attribute"/>s, or an empty collection.</returns>
|
||||
public IList<Attribute> GetAttributes(bool inherit)
|
||||
{
|
||||
@@ -61,7 +61,7 @@ namespace Newtonsoft.Json.Serialization
|
||||
/// Returns a collection of attributes, identified by type, or an empty collection if there are no attributes.
|
||||
/// </summary>
|
||||
/// <param name="attributeType">The type of the attributes.</param>
|
||||
/// <param name="inherit">When true, look up the hierarchy chain for the inherited custom attribute.</param>
|
||||
/// <param name="inherit">When <c>true</c>, look up the hierarchy chain for the inherited custom attribute.</param>
|
||||
/// <returns>A collection of <see cref="Attribute"/>s, or an empty collection.</returns>
|
||||
public IList<Attribute> GetAttributes(Type attributeType, bool inherit)
|
||||
{
|
||||
|
||||
@@ -31,12 +31,12 @@ namespace Newtonsoft.Json
|
||||
public enum TypeNameAssemblyFormatHandling
|
||||
{
|
||||
/// <summary>
|
||||
/// In simple mode, the assembly used during deserialization need not match exactly the assembly used during serialization. Specifically, the version numbers need not match as the <c>LoadWithPartialName</c> method is used to load the assembly.
|
||||
/// In simple mode, the assembly used during deserialization need not match exactly the assembly used during serialization. Specifically, the version numbers need not match as the <see cref="T:System.Reflection.Assembly.LoadWithPartialName"/> method is used to load the assembly.
|
||||
/// </summary>
|
||||
Simple = 0,
|
||||
|
||||
/// <summary>
|
||||
/// In full mode, the assembly used during deserialization must match exactly the assembly used during serialization. The Load method of the Assembly class is used to load the assembly.
|
||||
/// In full mode, the assembly used during deserialization must match exactly the assembly used during serialization. The <c>Load</c> method of the <see cref="System.Reflection.Assembly"/> class is used to load the assembly.
|
||||
/// </summary>
|
||||
Full = 1
|
||||
}
|
||||
|
||||
@@ -32,9 +32,9 @@ namespace Newtonsoft.Json
|
||||
/// Specifies type name handling options for the <see cref="JsonSerializer"/>.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <see cref="TypeNameHandling"/> should be used with caution when your application deserializes JSON from an external source.
|
||||
/// Incoming types should be validated with a custom <see cref="T:System.Runtime.Serialization.SerializationBinder"/>
|
||||
/// when deserializing with a value other than <c>TypeNameHandling.None</c>.
|
||||
/// <see cref="JsonSerializer.TypeNameHandling"/> should be used with caution when your application deserializes JSON from an external source.
|
||||
/// Incoming types should be validated with a custom <see cref="JsonSerializer.SerializationBinder"/>
|
||||
/// when deserializing with a value other than <see cref="TypeNameHandling.None"/>.
|
||||
/// </remarks>
|
||||
[Flags]
|
||||
public enum TypeNameHandling
|
||||
@@ -62,8 +62,8 @@ namespace Newtonsoft.Json
|
||||
/// <summary>
|
||||
/// Include the .NET type name when the type of the object being serialized is not the same as its declared type.
|
||||
/// Note that this doesn't include the root serialized object by default. To include the root object's type name in JSON
|
||||
/// you must specify a root type object with <see cref="Newtonsoft.Json.JsonConvert.SerializeObject(object, Type, Newtonsoft.Json.JsonSerializerSettings)"/>
|
||||
/// or <see cref="Newtonsoft.Json.JsonSerializer.Serialize(Newtonsoft.Json.JsonWriter, object, Type)" />.
|
||||
/// you must specify a root type object with <see cref="JsonConvert.SerializeObject(object, Type, JsonSerializerSettings)"/>
|
||||
/// or <see cref="JsonSerializer.Serialize(JsonWriter, object, Type)"/>.
|
||||
/// </summary>
|
||||
Auto = 4
|
||||
}
|
||||
|
||||
@@ -42,11 +42,11 @@ namespace Newtonsoft.Json.Utilities
|
||||
internal static class CollectionUtils
|
||||
{
|
||||
/// <summary>
|
||||
/// Determines whether the collection is null or empty.
|
||||
/// Determines whether the collection is <c>null</c> or empty.
|
||||
/// </summary>
|
||||
/// <param name="collection">The collection.</param>
|
||||
/// <returns>
|
||||
/// <c>true</c> if the collection is null or empty; otherwise, <c>false</c>.
|
||||
/// <c>true</c> if the collection is <c>null</c> or empty; otherwise, <c>false</c>.
|
||||
/// </returns>
|
||||
public static bool IsNullOrEmpty<T>(ICollection<T> collection)
|
||||
{
|
||||
@@ -58,7 +58,7 @@ namespace Newtonsoft.Json.Utilities
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Adds the elements of the specified collection to the specified generic IList.
|
||||
/// Adds the elements of the specified collection to the specified generic <see cref="IList{T}"/>.
|
||||
/// </summary>
|
||||
/// <param name="initial">The list to add to.</param>
|
||||
/// <param name="collection">The collection of elements to add.</param>
|
||||
|
||||
@@ -104,7 +104,7 @@ namespace Newtonsoft.Json.Utilities
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets a dictionary of the names and values of an Enum type.
|
||||
/// Gets a dictionary of the names and values of an <see cref="Enum"/> type.
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public static IList<EnumValue<ulong>> GetNamesAndValues<T>() where T : struct
|
||||
|
||||
@@ -724,7 +724,7 @@ namespace Newtonsoft.Json.Utilities.LinqBridge
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns an <see cref="Int64"/> that represents the total number
|
||||
/// Returns a <see cref="Int64"/> that represents the total number
|
||||
/// of elements in a sequence.
|
||||
/// </summary>
|
||||
|
||||
@@ -740,7 +740,7 @@ namespace Newtonsoft.Json.Utilities.LinqBridge
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns an <see cref="Int64"/> that represents how many elements
|
||||
/// Returns a <see cref="Int64"/> that represents how many elements
|
||||
/// in a sequence satisfy a condition.
|
||||
/// </summary>
|
||||
|
||||
@@ -1777,7 +1777,7 @@ namespace Newtonsoft.Json.Utilities.LinqBridge
|
||||
internal partial class Enumerable
|
||||
{
|
||||
/// <summary>
|
||||
/// Computes the sum of a sequence of nullable <see cref="System.Int32" /> values.
|
||||
/// Computes the sum of a sequence of <see cref="System.Int32" /> values.
|
||||
/// </summary>
|
||||
|
||||
public static int Sum(
|
||||
@@ -1793,7 +1793,7 @@ namespace Newtonsoft.Json.Utilities.LinqBridge
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Computes the sum of a sequence of nullable <see cref="System.Int32" />
|
||||
/// Computes the sum of a sequence of <see cref="System.Int32" />
|
||||
/// values that are obtained by invoking a transform function on
|
||||
/// each element of the input sequence.
|
||||
/// </summary>
|
||||
@@ -1806,7 +1806,7 @@ namespace Newtonsoft.Json.Utilities.LinqBridge
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Computes the average of a sequence of nullable <see cref="System.Int32" /> values.
|
||||
/// Computes the average of a sequence of <see cref="System.Int32" /> values.
|
||||
/// </summary>
|
||||
|
||||
public static double Average(
|
||||
@@ -1831,7 +1831,7 @@ namespace Newtonsoft.Json.Utilities.LinqBridge
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Computes the average of a sequence of nullable <see cref="System.Int32" /> values
|
||||
/// Computes the average of a sequence of <see cref="System.Int32" /> values
|
||||
/// that are obtained by invoking a transform function on each
|
||||
/// element of the input sequence.
|
||||
/// </summary>
|
||||
@@ -1845,7 +1845,7 @@ namespace Newtonsoft.Json.Utilities.LinqBridge
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Computes the sum of a sequence of <see cref="System.Int32" /> values.
|
||||
/// Computes the sum of a sequence of nullable <see cref="System.Int32" /> values.
|
||||
/// </summary>
|
||||
|
||||
public static int? Sum(
|
||||
@@ -1861,7 +1861,7 @@ namespace Newtonsoft.Json.Utilities.LinqBridge
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Computes the sum of a sequence of <see cref="System.Int32" />
|
||||
/// Computes the sum of a sequence of nullable <see cref="System.Int32" />
|
||||
/// values that are obtained by invoking a transform function on
|
||||
/// each element of the input sequence.
|
||||
/// </summary>
|
||||
@@ -1874,7 +1874,7 @@ namespace Newtonsoft.Json.Utilities.LinqBridge
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Computes the average of a sequence of <see cref="System.Int32" /> values.
|
||||
/// Computes the average of a sequence of nullable <see cref="System.Int32" /> values.
|
||||
/// </summary>
|
||||
|
||||
public static double? Average(
|
||||
@@ -1899,7 +1899,7 @@ namespace Newtonsoft.Json.Utilities.LinqBridge
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Computes the average of a sequence of <see cref="System.Int32" /> values
|
||||
/// Computes the average of a sequence of nullable <see cref="System.Int32" /> values
|
||||
/// that are obtained by invoking a transform function on each
|
||||
/// element of the input sequence.
|
||||
/// </summary>
|
||||
@@ -1963,7 +1963,7 @@ namespace Newtonsoft.Json.Utilities.LinqBridge
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Computes the sum of a sequence of nullable <see cref="System.Int64" /> values.
|
||||
/// Computes the sum of a sequence of <see cref="System.Int64" /> values.
|
||||
/// </summary>
|
||||
|
||||
public static long Sum(
|
||||
@@ -1979,7 +1979,7 @@ namespace Newtonsoft.Json.Utilities.LinqBridge
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Computes the sum of a sequence of nullable <see cref="System.Int64" />
|
||||
/// Computes the sum of a sequence of <see cref="System.Int64" />
|
||||
/// values that are obtained by invoking a transform function on
|
||||
/// each element of the input sequence.
|
||||
/// </summary>
|
||||
@@ -1992,7 +1992,7 @@ namespace Newtonsoft.Json.Utilities.LinqBridge
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Computes the average of a sequence of nullable <see cref="System.Int64" /> values.
|
||||
/// Computes the average of a sequence of <see cref="System.Int64" /> values.
|
||||
/// </summary>
|
||||
|
||||
public static double Average(
|
||||
@@ -2017,7 +2017,7 @@ namespace Newtonsoft.Json.Utilities.LinqBridge
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Computes the average of a sequence of nullable <see cref="System.Int64" /> values
|
||||
/// Computes the average of a sequence of <see cref="System.Int64" /> values
|
||||
/// that are obtained by invoking a transform function on each
|
||||
/// element of the input sequence.
|
||||
/// </summary>
|
||||
@@ -2031,7 +2031,7 @@ namespace Newtonsoft.Json.Utilities.LinqBridge
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Computes the sum of a sequence of <see cref="System.Int64" /> values.
|
||||
/// Computes the sum of a sequence of nullable <see cref="System.Int64" /> values.
|
||||
/// </summary>
|
||||
|
||||
public static long? Sum(
|
||||
@@ -2047,7 +2047,7 @@ namespace Newtonsoft.Json.Utilities.LinqBridge
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Computes the sum of a sequence of <see cref="System.Int64" />
|
||||
/// Computes the sum of a sequence of nullable <see cref="System.Int64" />
|
||||
/// values that are obtained by invoking a transform function on
|
||||
/// each element of the input sequence.
|
||||
/// </summary>
|
||||
@@ -2060,7 +2060,7 @@ namespace Newtonsoft.Json.Utilities.LinqBridge
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Computes the average of a sequence of <see cref="System.Int64" /> values.
|
||||
/// Computes the average of a sequence of nullable <see cref="System.Int64" /> values.
|
||||
/// </summary>
|
||||
|
||||
public static double? Average(
|
||||
@@ -2085,7 +2085,7 @@ namespace Newtonsoft.Json.Utilities.LinqBridge
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Computes the average of a sequence of <see cref="System.Int64" /> values
|
||||
/// Computes the average of a sequence of nullable <see cref="System.Int64" /> values
|
||||
/// that are obtained by invoking a transform function on each
|
||||
/// element of the input sequence.
|
||||
/// </summary>
|
||||
@@ -2165,7 +2165,7 @@ namespace Newtonsoft.Json.Utilities.LinqBridge
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Computes the sum of a sequence of nullable <see cref="System.Single" />
|
||||
/// Computes the sum of a sequence of <see cref="System.Single" />
|
||||
/// values that are obtained by invoking a transform function on
|
||||
/// each element of the input sequence.
|
||||
/// </summary>
|
||||
@@ -2178,7 +2178,7 @@ namespace Newtonsoft.Json.Utilities.LinqBridge
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Computes the average of a sequence of nullable <see cref="System.Single" /> values.
|
||||
/// Computes the average of a sequence of <see cref="System.Single" /> values.
|
||||
/// </summary>
|
||||
|
||||
public static float Average(
|
||||
@@ -2203,7 +2203,7 @@ namespace Newtonsoft.Json.Utilities.LinqBridge
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Computes the average of a sequence of nullable <see cref="System.Single" /> values
|
||||
/// Computes the average of a sequence of <see cref="System.Single" /> values
|
||||
/// that are obtained by invoking a transform function on each
|
||||
/// element of the input sequence.
|
||||
/// </summary>
|
||||
@@ -2217,7 +2217,7 @@ namespace Newtonsoft.Json.Utilities.LinqBridge
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Computes the sum of a sequence of <see cref="System.Single" /> values.
|
||||
/// Computes the sum of a sequence of nullable <see cref="System.Single" /> values.
|
||||
/// </summary>
|
||||
|
||||
public static float? Sum(
|
||||
@@ -2233,7 +2233,7 @@ namespace Newtonsoft.Json.Utilities.LinqBridge
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Computes the sum of a sequence of <see cref="System.Single" />
|
||||
/// Computes the sum of a sequence of nullable <see cref="System.Single" />
|
||||
/// values that are obtained by invoking a transform function on
|
||||
/// each element of the input sequence.
|
||||
/// </summary>
|
||||
@@ -2246,7 +2246,7 @@ namespace Newtonsoft.Json.Utilities.LinqBridge
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Computes the average of a sequence of <see cref="System.Single" /> values.
|
||||
/// Computes the average of a sequence of nullable <see cref="System.Single" /> values.
|
||||
/// </summary>
|
||||
|
||||
public static float? Average(
|
||||
@@ -2271,7 +2271,7 @@ namespace Newtonsoft.Json.Utilities.LinqBridge
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Computes the average of a sequence of <see cref="System.Single" /> values
|
||||
/// Computes the average of a sequence of nullable <see cref="System.Single" /> values
|
||||
/// that are obtained by invoking a transform function on each
|
||||
/// element of the input sequence.
|
||||
/// </summary>
|
||||
@@ -2335,7 +2335,7 @@ namespace Newtonsoft.Json.Utilities.LinqBridge
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Computes the sum of a sequence of nullable <see cref="System.Double" /> values.
|
||||
/// Computes the sum of a sequence of <see cref="System.Double" /> values.
|
||||
/// </summary>
|
||||
|
||||
public static double Sum(
|
||||
@@ -2351,7 +2351,7 @@ namespace Newtonsoft.Json.Utilities.LinqBridge
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Computes the sum of a sequence of nullable <see cref="System.Double" />
|
||||
/// Computes the sum of a sequence of <see cref="System.Double" />
|
||||
/// values that are obtained by invoking a transform function on
|
||||
/// each element of the input sequence.
|
||||
/// </summary>
|
||||
@@ -2364,7 +2364,7 @@ namespace Newtonsoft.Json.Utilities.LinqBridge
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Computes the average of a sequence of nullable <see cref="System.Double" /> values.
|
||||
/// Computes the average of a sequence of <see cref="System.Double" /> values.
|
||||
/// </summary>
|
||||
|
||||
public static double Average(
|
||||
@@ -2389,7 +2389,7 @@ namespace Newtonsoft.Json.Utilities.LinqBridge
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Computes the average of a sequence of nullable <see cref="System.Double" /> values
|
||||
/// Computes the average of a sequence of <see cref="System.Double" /> values
|
||||
/// that are obtained by invoking a transform function on each
|
||||
/// element of the input sequence.
|
||||
/// </summary>
|
||||
@@ -2403,7 +2403,7 @@ namespace Newtonsoft.Json.Utilities.LinqBridge
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Computes the sum of a sequence of <see cref="System.Double" /> values.
|
||||
/// Computes the sum of a sequence of nullable <see cref="System.Double" /> values.
|
||||
/// </summary>
|
||||
|
||||
public static double? Sum(
|
||||
@@ -2419,7 +2419,7 @@ namespace Newtonsoft.Json.Utilities.LinqBridge
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Computes the sum of a sequence of <see cref="System.Double" />
|
||||
/// Computes the sum of a sequence of nullable <see cref="System.Double" />
|
||||
/// values that are obtained by invoking a transform function on
|
||||
/// each element of the input sequence.
|
||||
/// </summary>
|
||||
@@ -2432,7 +2432,7 @@ namespace Newtonsoft.Json.Utilities.LinqBridge
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Computes the average of a sequence of <see cref="System.Double" /> values.
|
||||
/// Computes the average of a sequence of nullable <see cref="System.Double" /> values.
|
||||
/// </summary>
|
||||
|
||||
public static double? Average(
|
||||
@@ -2457,7 +2457,7 @@ namespace Newtonsoft.Json.Utilities.LinqBridge
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Computes the average of a sequence of <see cref="System.Double" /> values
|
||||
/// Computes the average of a sequence of nullable <see cref="System.Double" /> values
|
||||
/// that are obtained by invoking a transform function on each
|
||||
/// element of the input sequence.
|
||||
/// </summary>
|
||||
@@ -2521,7 +2521,7 @@ namespace Newtonsoft.Json.Utilities.LinqBridge
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Computes the sum of a sequence of nullable <see cref="System.Decimal" /> values.
|
||||
/// Computes the sum of a sequence of <see cref="System.Decimal" /> values.
|
||||
/// </summary>
|
||||
|
||||
public static decimal Sum(
|
||||
@@ -2537,7 +2537,7 @@ namespace Newtonsoft.Json.Utilities.LinqBridge
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Computes the sum of a sequence of nullable <see cref="System.Decimal" />
|
||||
/// Computes the sum of a sequence of <see cref="System.Decimal" />
|
||||
/// values that are obtained by invoking a transform function on
|
||||
/// each element of the input sequence.
|
||||
/// </summary>
|
||||
@@ -2550,7 +2550,7 @@ namespace Newtonsoft.Json.Utilities.LinqBridge
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Computes the average of a sequence of nullable <see cref="System.Decimal" /> values.
|
||||
/// Computes the average of a sequence of <see cref="System.Decimal" /> values.
|
||||
/// </summary>
|
||||
|
||||
public static decimal Average(
|
||||
@@ -2575,7 +2575,7 @@ namespace Newtonsoft.Json.Utilities.LinqBridge
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Computes the average of a sequence of nullable <see cref="System.Decimal" /> values
|
||||
/// Computes the average of a sequence of <see cref="System.Decimal" /> values
|
||||
/// that are obtained by invoking a transform function on each
|
||||
/// element of the input sequence.
|
||||
/// </summary>
|
||||
@@ -2589,7 +2589,7 @@ namespace Newtonsoft.Json.Utilities.LinqBridge
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Computes the sum of a sequence of <see cref="System.Decimal" /> values.
|
||||
/// Computes the sum of a sequence of nullable <see cref="System.Decimal" /> values.
|
||||
/// </summary>
|
||||
|
||||
public static decimal? Sum(
|
||||
@@ -2605,7 +2605,7 @@ namespace Newtonsoft.Json.Utilities.LinqBridge
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Computes the sum of a sequence of <see cref="System.Decimal" />
|
||||
/// Computes the sum of a sequence of nullable <see cref="System.Decimal" />
|
||||
/// values that are obtained by invoking a transform function on
|
||||
/// each element of the input sequence.
|
||||
/// </summary>
|
||||
@@ -2618,7 +2618,7 @@ namespace Newtonsoft.Json.Utilities.LinqBridge
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Computes the average of a sequence of <see cref="System.Decimal" /> values.
|
||||
/// Computes the average of a sequence of nullable <see cref="System.Decimal" /> values.
|
||||
/// </summary>
|
||||
|
||||
public static decimal? Average(
|
||||
@@ -2643,7 +2643,7 @@ namespace Newtonsoft.Json.Utilities.LinqBridge
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Computes the average of a sequence of <see cref="System.Decimal" /> values
|
||||
/// Computes the average of a sequence of nullable <see cref="System.Decimal" /> values
|
||||
/// that are obtained by invoking a transform function on each
|
||||
/// element of the input sequence.
|
||||
/// </summary>
|
||||
|
||||
@@ -39,9 +39,9 @@
|
||||
/// Checks if value of primitive type <paramref name="from"/> can be
|
||||
/// assigned to parameter of primitive type <paramref name="to"/>.
|
||||
/// </summary>
|
||||
/// <param name="from">Source primitive type</param>
|
||||
/// <param name="to">Target primitive type</param>
|
||||
/// <returns>True if source type can be widened to target type, false otherwise</returns>
|
||||
/// <param name="from">Source primitive type.</param>
|
||||
/// <param name="to">Target primitive type.</param>
|
||||
/// <returns><c>true</c> if source type can be widened to target type, <c>false</c> otherwise.</returns>
|
||||
private static bool CanConvertPrimitive(Type from, Type to)
|
||||
{
|
||||
if (from == to)
|
||||
@@ -77,10 +77,10 @@
|
||||
/// Checks if a set of values with given <paramref name="types"/> can be used
|
||||
/// to invoke a method with specified <paramref name="parameters"/>.
|
||||
/// </summary>
|
||||
/// <param name="parameters">Method parameters</param>
|
||||
/// <param name="types">Argument types</param>
|
||||
/// <param name="enableParamArray">Try to pack extra arguments into ParamArray</param>
|
||||
/// <returns>True if method can be called with given arguments, false otherwise</returns>
|
||||
/// <param name="parameters">Method parameters.</param>
|
||||
/// <param name="types">Argument types.</param>
|
||||
/// <param name="enableParamArray">Try to pack extra arguments into the last parameter when it is marked up with <see cref="ParamArrayAttribute"/>.</param>
|
||||
/// <returns><c>true</c> if method can be called with given arguments, <c>false</c> otherwise.</returns>
|
||||
private static bool FilterParameters(ParameterInfo[] parameters, IList<Type> types, bool enableParamArray)
|
||||
{
|
||||
ValidationUtils.ArgumentNotNull(parameters, nameof(parameters));
|
||||
@@ -293,11 +293,11 @@
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Retunrs a best method overload for given argument <paramref name="types"/>.
|
||||
/// Returns a best method overload for given argument <paramref name="types"/>.
|
||||
/// </summary>
|
||||
/// <param name="candidates">List of method candidates</param>
|
||||
/// <param name="types">Argument types</param>
|
||||
/// <returns>Best method overload, or <c>null</c> if none matched</returns>
|
||||
/// <param name="candidates">List of method candidates.</param>
|
||||
/// <param name="types">Argument types.</param>
|
||||
/// <returns>Best method overload, or <c>null</c> if none matched.</returns>
|
||||
public static TMethod SelectMethod<TMethod>(IEnumerable<TMethod> candidates, IList<Type> types) where TMethod : MethodBase
|
||||
{
|
||||
ValidationUtils.ArgumentNotNull(candidates, nameof(candidates));
|
||||
|
||||
@@ -28,7 +28,7 @@ using System;
|
||||
namespace Newtonsoft.Json.Utilities
|
||||
{
|
||||
/// <summary>
|
||||
/// Builds a string. Unlike StringBuilder this class lets you reuse it's internal buffer.
|
||||
/// Builds a string. Unlike <see cref="System.Text.StringBuilder"/> this class lets you reuse its internal buffer.
|
||||
/// </summary>
|
||||
internal struct StringBuffer
|
||||
{
|
||||
|
||||
@@ -75,7 +75,7 @@ namespace Newtonsoft.Json.Utilities
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Determines whether the string is all white space. Empty string will return false.
|
||||
/// Determines whether the string is all white space. Empty string will return <c>false</c>.
|
||||
/// </summary>
|
||||
/// <param name="s">The string to test whether it is all white space.</param>
|
||||
/// <returns>
|
||||
|
||||
@@ -34,13 +34,13 @@ namespace Newtonsoft.Json
|
||||
{
|
||||
/// <summary>
|
||||
/// An exception has been thrown, which has left the <see cref="JsonWriter"/> in an invalid state.
|
||||
/// You may call the <see cref="JsonWriter.Close"/> method to put the <see cref="JsonWriter"/> in the <c>Closed</c> state.
|
||||
/// You may call the <see cref="JsonWriter.Close()"/> method to put the <see cref="JsonWriter"/> in the <see cref="JsonWriter.State.Closed"/> state.
|
||||
/// Any other <see cref="JsonWriter"/> method calls result in an <see cref="InvalidOperationException"/> being thrown.
|
||||
/// </summary>
|
||||
Error = 0,
|
||||
|
||||
/// <summary>
|
||||
/// The <see cref="JsonWriter.Close"/> method has been called.
|
||||
/// The <see cref="JsonWriter.Close()"/> method has been called.
|
||||
/// </summary>
|
||||
Closed = 1,
|
||||
|
||||
@@ -50,7 +50,7 @@ namespace Newtonsoft.Json
|
||||
Object = 2,
|
||||
|
||||
/// <summary>
|
||||
/// A array is being written.
|
||||
/// An array is being written.
|
||||
/// </summary>
|
||||
Array = 3,
|
||||
|
||||
@@ -65,7 +65,7 @@ namespace Newtonsoft.Json
|
||||
Property = 5,
|
||||
|
||||
/// <summary>
|
||||
/// A write method has not been called.
|
||||
/// A <see cref="JsonWriter"/> write method has not been called.
|
||||
/// </summary>
|
||||
Start = 6
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user