sdk/dotnet/src/Microsoft.Datasync.Client/Http/HttpMessageExtensions.cs
/// <summary>
/// Gets the version string from the provided <c>ETag</c> header value.
/// </summary>
/// <param name="value">The <c>ETag</c> value.</param>
/// <returns>The version string.</returns>
Gets the version string from the provided ETag
Gets the version string from the provided ETag
internal static string GetVersion(this EntityTagHeaderValue value)
        {
            if (string.IsNullOrEmpty(value?.Tag))
            {
                return null;
            }
            return value.Tag.Substring(1, value.Tag.Length - 2).Replace("\\\"", "\"");
        }
internal static string GetVersion ( this EntityTagHeaderValue value ) { if ( string . IsNullOrEmpty ( value ? . Tag ) ) { return null ; } return value . Tag . Substring ( 1 , value . Tag . Length - 2 ) . Replace ( " \\ \" " , " \" " ) ; }
Gets the version string from the provided ETag
Gets the version string from the provided ETag
The version string.
The version string .
EntityTagHeaderValue
this
value
None