SALES: 1-800-867-1380

MobileServicePrecisionCheckConverter Class

Updated: June 25, 2013

An implementation of JsonConverter to be used with Int64, UInt64 and 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.

System.Object
  JsonConverter
    Microsoft.WindowsAzure.MobileServices.MobileServicePrecisionCheckConverter

Namespace:  Microsoft.WindowsAzure.MobileServices
Assembly:  Microsoft.WindowsAzure.Mobile (in Microsoft.WindowsAzure.Mobile.dll)

public class MobileServicePrecisionCheckConverter : JsonConverter

The MobileServicePrecisionCheckConverter type exposes the following members.

  NameDescription
Public methodMobileServicePrecisionCheckConverterCreates a new instance of MobileServicePrecisionCheckConverter.
Top

  NameDescription
Public propertyCanReadIndicates this JsonConverter should not be used during deserialization. (Overrides JsonConverterCanRead.)
Public propertyCanWrite (Inherited from JsonConverter.)
Top

  NameDescription
Public methodCanConvertIndicates if the specified type can be converted by this converter. (Overrides JsonConverterCanConvert(Type).)
Public methodEquals (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetSchema (Inherited from JsonConverter.)
Public methodGetType (Inherited from Object.)
Protected methodMemberwiseClone (Inherited from Object.)
Public methodReadJsonReading is not supported for this converter. (Overrides JsonConverterReadJson(JsonReader, Type, Object, JsonSerializer).)
Public methodToString (Inherited from Object.)
Public methodWriteJsonWrites 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. (Overrides JsonConverterWriteJson(JsonWriter, Object, JsonSerializer).)
Top

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft