Permalink
Fetching contributors…
Cannot retrieve contributors at this time
148 lines (148 sloc) 7.39 KB
<Type Name="MobileServicePrecisionCheckConverter" FullName="Microsoft.WindowsAzure.MobileServices.MobileServicePrecisionCheckConverter">
<TypeSignature Language="C#" Value="public class MobileServicePrecisionCheckConverter : Newtonsoft.Json.JsonConverter" />
<TypeSignature Language="ILAsm" Value=".class public auto ansi beforefieldinit MobileServicePrecisionCheckConverter extends Newtonsoft.Json.JsonConverter" />
<TypeSignature Language="DocId" Value="T:Microsoft.WindowsAzure.MobileServices.MobileServicePrecisionCheckConverter" />
<AssemblyInfo>
<AssemblyName>Microsoft.Azure.Mobile.Client</AssemblyName>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Base>
<BaseTypeName>Newtonsoft.Json.JsonConverter</BaseTypeName>
</Base>
<Interfaces />
<Docs>
<summary>
An implementation of <see cref="T:Newtonsoft.Json.JsonConverter" /> to be used with
<see cref="T:System.Int64" />, <see cref="T:System.UInt64" /> and <see cref="T: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.
</summary>
<remarks>To be added.</remarks>
</Docs>
<Members>
<Member MemberName=".ctor">
<MemberSignature Language="C#" Value="public MobileServicePrecisionCheckConverter ();" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor() cil managed" />
<MemberSignature Language="DocId" Value="M:Microsoft.WindowsAzure.MobileServices.MobileServicePrecisionCheckConverter.#ctor" />
<MemberType>Constructor</MemberType>
<AssemblyInfo>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
<AssemblyName>Microsoft.Azure.Mobile.Client</AssemblyName>
</AssemblyInfo>
<Parameters />
<Docs>
<summary>To be added.</summary>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="CanConvert">
<MemberSignature Language="C#" Value="public override bool CanConvert (Type objectType);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig virtual instance bool CanConvert(class System.Type objectType) cil managed" />
<MemberSignature Language="DocId" Value="M:Microsoft.WindowsAzure.MobileServices.MobileServicePrecisionCheckConverter.CanConvert(System.Type)" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
<AssemblyName>Microsoft.Azure.Mobile.Client</AssemblyName>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Boolean</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="objectType" Type="System.Type" />
</Parameters>
<Docs>
<param name="objectType">The type to check.</param>
<summary>
Indicates if the specified type can be converted by this converter.
</summary>
<returns>A bool indicating if this converter can convert the type.</returns>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="CanRead">
<MemberSignature Language="C#" Value="public override bool CanRead { get; }" />
<MemberSignature Language="ILAsm" Value=".property instance bool CanRead" />
<MemberSignature Language="DocId" Value="P:Microsoft.WindowsAzure.MobileServices.MobileServicePrecisionCheckConverter.CanRead" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
<AssemblyName>Microsoft.Azure.Mobile.Client</AssemblyName>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Boolean</ReturnType>
</ReturnValue>
<Docs>
<summary>
Indicates this <see cref="T:Newtonsoft.Json.JsonConverter" /> should not be used during deserialization.
</summary>
<value>To be added.</value>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="ReadJson">
<MemberSignature Language="C#" Value="public override object ReadJson (Newtonsoft.Json.JsonReader reader, Type objectType, object existingValue, Newtonsoft.Json.JsonSerializer serializer);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig virtual instance object ReadJson(class Newtonsoft.Json.JsonReader reader, class System.Type objectType, object existingValue, class Newtonsoft.Json.JsonSerializer serializer) cil managed" />
<MemberSignature Language="DocId" Value="M:Microsoft.WindowsAzure.MobileServices.MobileServicePrecisionCheckConverter.ReadJson(Newtonsoft.Json.JsonReader,System.Type,System.Object,Newtonsoft.Json.JsonSerializer)" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
<AssemblyName>Microsoft.Azure.Mobile.Client</AssemblyName>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Object</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="reader" Type="Newtonsoft.Json.JsonReader" />
<Parameter Name="objectType" Type="System.Type" />
<Parameter Name="existingValue" Type="System.Object" />
<Parameter Name="serializer" Type="Newtonsoft.Json.JsonSerializer" />
</Parameters>
<Docs>
<param name="reader"></param>
<param name="objectType"></param>
<param name="existingValue"></param>
<param name="serializer"></param>
<summary>
Reading is not supported for this converter.
</summary>
<returns />
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="WriteJson">
<MemberSignature Language="C#" Value="public override void WriteJson (Newtonsoft.Json.JsonWriter writer, object value, Newtonsoft.Json.JsonSerializer serializer);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig virtual instance void WriteJson(class Newtonsoft.Json.JsonWriter writer, object value, class Newtonsoft.Json.JsonSerializer serializer) cil managed" />
<MemberSignature Language="DocId" Value="M:Microsoft.WindowsAzure.MobileServices.MobileServicePrecisionCheckConverter.WriteJson(Newtonsoft.Json.JsonWriter,System.Object,Newtonsoft.Json.JsonSerializer)" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
<AssemblyName>Microsoft.Azure.Mobile.Client</AssemblyName>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="writer" Type="Newtonsoft.Json.JsonWriter" />
<Parameter Name="value" Type="System.Object" />
<Parameter Name="serializer" Type="Newtonsoft.Json.JsonSerializer" />
</Parameters>
<Docs>
<param name="writer">
The JsonWriter instance to use.
</param>
<param name="value">
The value to check on write.
</param>
<param name="serializer">
The current Serializer.
</param>
<summary>
Writes the <paramref name="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.
</summary>
<remarks>To be added.</remarks>
</Docs>
</Member>
</Members>
</Type>