sdk/dotnet/src/Microsoft.Datasync.Client/Serialization/DatasyncContractResolver.cs
/// <summary>
/// Returns the serialized property name.
/// </summary>
/// <param name="propertyName">The property name to serialize.</param>
/// <returns>The property name in JSON form.</returns>
Returns the serialized property name.
Returns the serialized property name .
protected override string ResolvePropertyName(string propertyName)
        {
            if (CamelCasePropertyNames && !string.IsNullOrWhiteSpace(propertyName))
            {
                return propertyName.Length > 1 ? char.ToLower(propertyName[0]) + propertyName.Substring(1) : propertyName.ToLower();
            }
            return propertyName;
        }
protected override string ResolvePropertyName ( string propertyName ) { if ( CamelCasePropertyNames && ! string . IsNullOrWhiteSpace ( propertyName ) ) { return propertyName . Length > 1 ? char . ToLower ( propertyName [ 0 ] ) + propertyName . Substring ( 1 ) : propertyName . ToLower ( ) ; } return propertyName ; }
Returns the serialized property name.
Returns the serialized property name .
The property name in JSON form.
The property name in JSON form .
propertyName
string
The property name to serialize.
The property name to serialize .