[]
        
(Showing Draft Content)

C1.JsonNet.JsonReader

JsonReader Class

Represents a reader that provides access to serialized Json data.

Inheritance
JsonReader
Namespace: C1.JsonNet
Assembly: C1.Web.Mvc.dll
Syntax
public class JsonReader : BaseReader, IDisposable, IJsonOperation

Constructors

Name Description
JsonReader(TextReader, JsonSetting)

Initializes a new instance of the JsonReader class.

Properties

Name Description
Current

Gets or sets the current value which need be deserialized.

JsonSetting

Gets the json settings.

Methods

Name Description
Dispose()

Dispose all the resources used.

ReadName(string)

Read the field from the data according to the specified name

ReadValue(Type)

Deserialize the text into an instance of the specified type

ReadValue<T>()

Deserialize the text into an instance of the specified type which T stands.