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");
}
}
}