sdk/dotnet/src/Microsoft.Datasync.Client/Serialization/DatasyncContractResolver.cs
/// <summary>
/// Creates a <see cref="JsonProperty"/> for a given <see cref="MemberInfo"/> instance.
/// </summary>
/// <remarks>
/// This method is overridden to set specialized <see cref="IValueProvider"/> implementations for
/// certain property types - most specifically, the date/time formatters.
/// </remarks>
/// <param name="member">The <see cref="MemberInfo"/> to create the <see cref="JsonProperty"/>.</param>
/// <param name="memberSerialization">Member serialization options for the member.</param>
/// <returns>A <see cref="JsonProperty"/> for the <paramref name="member"/>.</returns>
Creates a  for a given  instance.
Creates a for a given instance .
protected override JsonProperty CreateProperty(MemberInfo member, MemberSerialization memberSerialization)
        {
            JsonProperty property = base.CreateProperty(member, memberSerialization);
            try
            {
                jsonPropertyCacheLock.EnterWriteLock();
                jsonPropertyCache[member] = property;
            }
            finally
            {
                jsonPropertyCacheLock.ExitWriteLock();
            }
            return property;
        }
protected override JsonProperty CreateProperty ( MemberInfo member , MemberSerialization memberSerialization ) { JsonProperty property = base . CreateProperty ( member , memberSerialization ) ; try { jsonPropertyCacheLock . EnterWriteLock ( ) ; jsonPropertyCache [ member ] = property ; } finally { jsonPropertyCacheLock . ExitWriteLock ( ) ; } return property ; }
Creates a  for a given  instance.
Creates a for a given instance .
A  for the .
A for the .
member
MemberInfo
The  to create the .
The to create the .
memberSerialization
MemberSerialization
Member serialization options for the member.
Member serialization options for the member .
remarks
This method is overridden to set specialized  implementations for
certain property types - most specifically, the date/time formatters.
This method is overridden to set specialized implementations for certain property types - most specifically the date / time formatters .