protected MemberDescriptor(MemberDescriptor oldMemberDescriptor, Attribute[] newAttributes)
{
_name = oldMemberDescriptor.Name;
_displayName = oldMemberDescriptor.DisplayName;
_nameHash = _name.GetHashCode();
ArrayList newArray = new ArrayList();
if (oldMemberDescriptor.Attributes.Count != 0)
{
foreach (object o in oldMemberDescriptor.Attributes)
{
newArray.Add(o);
}
}
if (newAttributes != null)
{
foreach (object o in newAttributes)
{
newArray.Add(o);
}
}
_attributes = new Attribute[newArray.Count];
newArray.CopyTo(_attributes, 0);
_attributesFiltered = false;
_originalAttributes = _attributes;
}