sdk/dotnet/src/Microsoft.Datasync.Client/Serialization/DatasyncContractResolver.cs
/// <summary>
/// Sets the member converters on the property if the property is a value type.
/// </summary>
/// <param name="property">The property to add the member converters to.</param>
Sets the member converters on the property if the property is a value type.
Sets the member converters on the property if the property is a value type .
private static void SetMemberConverters(JsonProperty property)
        {
            if (property.PropertyType.GetTypeInfo().IsValueType)
            {
                property.Converter = property.Converter == null ? NullHandlingConverter.Instance : new NullHandlingConverter(property.Converter);
            }
        }
private static void SetMemberConverters ( JsonProperty property ) { if ( property . PropertyType . GetTypeInfo ( ) . IsValueType ) { property . Converter = property . Converter == null ? NullHandlingConverter . Instance : new NullHandlingConverter ( property . Converter ) ; } }
Sets the member converters on the property if the property is a value type.
Sets the member converters on the property if the property is a value type .
// The NullHandlingConverter will ensure that nulls get treated as the default value for value types.
property
JsonProperty
The property to add the member converters to.
The property to add the member converters to .