using System.Collections.Generic; namespace GitHub.Actions.WorkflowParser { internal static class CollectionsExtensions { /// /// Adds all of the given values to this collection. /// Can be used with dictionaries, which implement and where T is . /// public static TCollection AddRange(this TCollection collection, IEnumerable values) where TCollection : ICollection { foreach (var value in values) { collection.Add(value); } return collection; } } }