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

AppendValues() private static method

private static AppendValues ( StringBuilder sb, ObjectCollection values ) : void
sb System.Text.StringBuilder
values ObjectCollection
return void
        private static void AppendValues(StringBuilder sb, ObjectCollection<string> values)
        {
            bool first = true;
            foreach (string value in values)
            {
                if (first)
                {
                    first = false;
                }
                else
                {
                    sb.Append(", ");
                }

                sb.Append(value);
            }
        }