sdk/dotnet/src/Microsoft.Datasync.Client/Serialization/DatasyncContractResolver.cs
/// <summary>
/// Returns the <see cref="JsonProperty"/> for the given <see cref="MemberInfo"/> instance. The <see cref="JsonProperty"/>
/// can be used to get information about how the <see cref="MemberInfo"/> should be serialized.
/// </summary>
/// <param name="member">The <see cref="MemberInfo"/> for which to get the <see cref="JsonProperty"/>.</param>
/// <returns>The <see cref="JsonProperty"/> for the given <see cref="MemberInfo"/> instance.</returns>
Returns the  for the given  instance. The
can be used to get information about how the  should be serialized.
Returns the for the given instance . The can be used to get information about how the should be serialized .
public virtual JsonProperty ResolveProperty(MemberInfo member)
        {
            try
            {
                jsonPropertyCacheLock.EnterUpgradeableReadLock();
                if (!jsonPropertyCache.TryGetValue(member, out JsonProperty property))
                {
                    ResolveContract(member.DeclaringType);
                    jsonPropertyCache.TryGetValue(member, out property);
                }
                return property;
            }
            finally
            {
                jsonPropertyCacheLock.ExitUpgradeableReadLock();
            }
        }
public virtual JsonProperty ResolveProperty ( MemberInfo member ) { try { jsonPropertyCacheLock . EnterUpgradeableReadLock ( ) ; if ( ! jsonPropertyCache . TryGetValue ( member , out JsonProperty property ) ) { ResolveContract ( member . DeclaringType ) ; jsonPropertyCache . TryGetValue ( member , out property ) ; } return property ; } finally { jsonPropertyCacheLock . ExitUpgradeableReadLock ( ) ; } }
Returns the  for the given  instance.
Returns the for the given instance .
The  for the given  instance.
The for the given instance .
member
MemberInfo
The  for which to get the .
The for which to get the .