private static void BuildCollection(StringBuilder builder, ICollection collection) { byte[] array = collection as byte[]; if (array != null) { builder.Append(TaskVerboseStringHelper.TruncateAndConvertByteArray(array, 20)); return; } builder.Append('('); bool flag = false; foreach (object singleValue in collection) { if (flag) { builder.Append(','); } TaskVerboseStringHelper.BuildSingleValue(builder, singleValue); flag = true; } builder.Append(')'); }