MobileServicePrecisionCheckConverter Class

Definition

An implementation of Newtonsoft.Json.JsonConverter to be used with System.Int64, System.UInt64 and System.Decimal property types that only writes the values if we can ensure that precision will not be lost if the value is serialized and sent to the server.

public class MobileServicePrecisionCheckConverter : Newtonsoft.Json.JsonConverter
type MobileServicePrecisionCheckConverter = class
    inherit JsonConverter
Public Class MobileServicePrecisionCheckConverter
Inherits JsonConverter
Inheritance
Newtonsoft.Json.JsonConverter
MobileServicePrecisionCheckConverter

Constructors

MobileServicePrecisionCheckConverter()

Properties

CanRead

Indicates this Newtonsoft.Json.JsonConverter should not be used during deserialization.

Methods

CanConvert(Type)

Indicates if the specified type can be converted by this converter.

ReadJson(JsonReader, Type, Object, JsonSerializer)

Reading is not supported for this converter.

WriteJson(JsonWriter, Object, JsonSerializer)

Writes the value to Json only if we can ensure that the value will not lose precision when sent to the server. Otherwise it throws an exception.

Applies to