sdk/dotnet/src/Microsoft.Datasync.Client/Table/RemoteTable.cs
/// <summary>
/// Parses the response content into a <see cref="JToken"/> and adds the version system property
/// if the <c>ETag</c> header was returned from the server.
/// </summary>
/// <param name="response">The response to parse.</param>
/// <returns>The parsed <see cref="JToken"/>.</returns>
Parses the response content into a  and adds the version system property
if the ETag
Parses the response content into a and adds the version system property if the ETag
protected JToken GetJTokenFromResponse(ServiceResponse response)
        {
            if (response.HasContent)
            {
                JToken token = JsonConvert.DeserializeObject<JToken>(response.Content, ServiceClient.Serializer.SerializerSettings);
                if (response.ETag != null)
                {
                    token[SystemProperties.JsonVersionProperty] = response.ETag.GetVersion();
                }
                return token;
            }
            return null;
        }
protected JToken GetJTokenFromResponse ( ServiceResponse response ) { if ( response . HasContent ) { JToken token = JsonConvert . DeserializeObject < JToken > ( response . Content , ServiceClient . Serializer . SerializerSettings ) ; if ( response . ETag != null ) { token [ SystemProperties . JsonVersionProperty ] = response . ETag . GetVersion ( ) ; } return token ; } return null ; }
Parses the response content into a  and adds the version system property
if the ETag
Parses the response content into a and adds the version system property if the ETag
The parsed .
The parsed .
response
ServiceResponse
The response to parse.
The response to parse .