internal override XmlSchemaObject Clone() {
XmlSchemaAttributeGroup newGroup = (XmlSchemaAttributeGroup)MemberwiseClone();
if (XmlSchemaComplexType.HasAttributeQNameRef(this.attributes)) { //If a ref/type name is present
newGroup.attributes = XmlSchemaComplexType.CloneAttributes(this.attributes);
//Clear compiled tables
newGroup.attributeUses = null;
}
return newGroup;
}
}