System.Net.Http.Headers.CacheControlHeaderValue.AppendValueIfRequired C# (CSharp) Method

AppendValueIfRequired() private static method

private static AppendValueIfRequired ( StringBuilder sb, bool appendValue, string value ) : void
sb System.Text.StringBuilder
appendValue bool
value string
return void
        private static void AppendValueIfRequired(StringBuilder sb, bool appendValue, string value)
        {
            if (appendValue)
            {
                AppendValueWithSeparatorIfRequired(sb, value);
            }
        }