Adf.Web.UI.ControlExtensions.AddRange C# (CSharp) Method

AddRange() public static method

public static AddRange ( this collection, IEnumerable controls ) : System.Web.UI.ControlCollection
collection this
controls IEnumerable
return System.Web.UI.ControlCollection
        public static ControlCollection AddRange(this ControlCollection collection, IEnumerable<Control> controls)
        {
            if (collection == null || controls == null) return collection;

            foreach (Control control in controls)
            {
                if (control != null) collection.Add(control);
            }

            return collection;
        }
ControlExtensions