System.ComponentModel.AttributeCollection.AttributeCollection C# (CSharp) Method

AttributeCollection() public method

public AttributeCollection ( ) : System.Diagnostics.CodeAnalysis
return System.Diagnostics.CodeAnalysis
        public AttributeCollection(params Attribute[] attributes)
        {
            if (attributes == null)
            {
                attributes = new Attribute[0];
            }
            _attributes = attributes;

            for (int idx = 0; idx < attributes.Length; idx++)
            {
                if (attributes[idx] == null)
                {
                    throw new ArgumentNullException("attributes");
                }
            }
        }