Class JsonReader
Namespace: System.Dynamic.ExpandoObject
Assembly: Newtonsoft.Json.dll
Syntax
public abstract class JsonReader : IDisposable
Constructors
JsonReader()
Declaration
protected JsonReader ();
Properties
CloseInput
Culture
Declaration
public System.Globalization.CultureInfo Culture { get; set; }
Property Value
CultureInfo
|
CurrentState
Declaration
protected Newtonsoft.Json.JsonReader.State CurrentState { get; }
Property Value
JsonReader.State
|
DateFormatString
DateParseHandling
Declaration
public Newtonsoft.Json.DateParseHandling DateParseHandling { get; set; }
Property Value
DateParseHandling
|
DateTimeZoneHandling
Declaration
public Newtonsoft.Json.DateTimeZoneHandling DateTimeZoneHandling { get; set; }
Property Value
DateTimeZoneHandling
|
Depth
FloatParseHandling
Declaration
public Newtonsoft.Json.FloatParseHandling FloatParseHandling { get; set; }
Property Value
FloatParseHandling
|
MaxDepth
Path
QuoteChar
SupportMultipleContent
TokenType
Value
ValueType
Methods
Close()
Declaration
public virtual void Close ();
Dispose(Boolean)
Read()
ReadAsBoolean()
ReadAsBooleanAsync(CancellationToken)
Declaration
public virtual System.Threading.Tasks.Task<Nullable<bool>> ReadAsBooleanAsync (System.Threading.CancellationToken cancellationToken = null);
Parameters
CancellationToken
cancellationToken
|
Returns
Task<Nullable<Boolean>>
|
ReadAsBytes()
ReadAsBytesAsync(CancellationToken)
Declaration
public virtual System.Threading.Tasks.Task<byte[]> ReadAsBytesAsync (System.Threading.CancellationToken cancellationToken = null);
Parameters
CancellationToken
cancellationToken
|
Returns
Task<Byte[]>
|
ReadAsDateTime()
ReadAsDateTimeAsync(CancellationToken)
Declaration
public virtual System.Threading.Tasks.Task<Nullable<DateTime>> ReadAsDateTimeAsync (System.Threading.CancellationToken cancellationToken = null);
Parameters
CancellationToken
cancellationToken
|
Returns
Task<Nullable<DateTime>>
|
ReadAsDateTimeOffset()
Declaration
public virtual Nullable<DateTimeOffset> ReadAsDateTimeOffset ();
Returns
Nullable<DateTimeOffset>
|
ReadAsDateTimeOffsetAsync(CancellationToken)
Declaration
public virtual System.Threading.Tasks.Task<Nullable<DateTimeOffset>> ReadAsDateTimeOffsetAsync (System.Threading.CancellationToken cancellationToken = null);
Parameters
CancellationToken
cancellationToken
|
Returns
Task<Nullable<DateTimeOffset>>
|
ReadAsDecimal()
ReadAsDecimalAsync(CancellationToken)
Declaration
public virtual System.Threading.Tasks.Task<Nullable<decimal>> ReadAsDecimalAsync (System.Threading.CancellationToken cancellationToken = null);
Parameters
CancellationToken
cancellationToken
|
Returns
Task<Nullable<Decimal>>
|
ReadAsDouble()
ReadAsDoubleAsync(CancellationToken)
Declaration
public virtual System.Threading.Tasks.Task<Nullable<double>> ReadAsDoubleAsync (System.Threading.CancellationToken cancellationToken = null);
Parameters
CancellationToken
cancellationToken
|
Returns
Task<Nullable<Double>>
|
ReadAsInt32()
ReadAsInt32Async(CancellationToken)
Declaration
public virtual System.Threading.Tasks.Task<Nullable<int>> ReadAsInt32Async (System.Threading.CancellationToken cancellationToken = null);
Parameters
CancellationToken
cancellationToken
|
Returns
Task<Nullable<Int32>>
|
ReadAsString()
ReadAsStringAsync(CancellationToken)
Declaration
public virtual System.Threading.Tasks.Task<string> ReadAsStringAsync (System.Threading.CancellationToken cancellationToken = null);
Parameters
CancellationToken
cancellationToken
|
Returns
Task<String>
|
ReadAsync(CancellationToken)
Declaration
public virtual System.Threading.Tasks.Task<bool> ReadAsync (System.Threading.CancellationToken cancellationToken = null);
Parameters
CancellationToken
cancellationToken
|
Returns
Task<Boolean>
|
SetStateBasedOnCurrent()
Declaration
protected void SetStateBasedOnCurrent ();
SetToken(JsonToken)
Declaration
protected void SetToken (Newtonsoft.Json.JsonToken newToken);
Parameters
JsonToken
newToken
|
SetToken(JsonToken, Object)
Declaration
protected void SetToken (Newtonsoft.Json.JsonToken newToken, object value);
Parameters
JsonToken
newToken
|
Object
value
|
SetToken(JsonToken, Object, Boolean)
Declaration
protected void SetToken (Newtonsoft.Json.JsonToken newToken, object value, bool updateIndex);
Parameters
JsonToken
newToken
|
Object
value
|
Boolean
updateIndex
|
Skip()
Declaration
public void Skip ();
SkipAsync(CancellationToken)
Declaration
public System.Threading.Tasks.Task SkipAsync (System.Threading.CancellationToken cancellationToken = null);
Parameters
CancellationToken
cancellationToken
|
Returns
Task
|
Explicit Interface Implementations
IDisposable.Dispose()
Declaration
void IDisposable.Dispose ();