Table of Contents

Class DataSetConverter

Namespace
Newtonsoft.Json.Converters
Assembly
Newtonsoft.Json.dll

Converts a DataSet to and from JSON.

public class DataSetConverter : JsonConverter
Inheritance
DataSetConverter
Inherited Members

Constructors

DataSetConverter()

public DataSetConverter()

Methods

CanConvert(Type)

Determines whether this instance can convert the specified value type.

public override bool CanConvert(Type valueType)

Parameters

valueType Type

Type of the value.

Returns

bool

true if this instance can convert the specified value type; otherwise, false.

ReadJson(JsonReader, Type, object, JsonSerializer)

Reads the JSON representation of the object.

public override object ReadJson(JsonReader reader, Type objectType, object existingValue, JsonSerializer serializer)

Parameters

reader JsonReader

The JsonReader to read from.

objectType Type

Type of the object.

existingValue object

The existing value of object being read.

serializer JsonSerializer

The calling serializer.

Returns

object

The object value.

WriteJson(JsonWriter, object, JsonSerializer)

Writes the JSON representation of the object.

public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer)

Parameters

writer JsonWriter

The JsonWriter to write to.

value object

The value.

serializer JsonSerializer

The calling serializer.