HasAttributeQNameRef() static private method

static private HasAttributeQNameRef ( XmlSchemaObjectCollection attributes ) : bool
attributes XmlSchemaObjectCollection
return bool
コード例 #1
0
        internal override XmlSchemaObject Clone()
        {
            XmlSchemaAttributeGroup group = (XmlSchemaAttributeGroup)base.MemberwiseClone();

            if (XmlSchemaComplexType.HasAttributeQNameRef(this.attributes))
            {
                group.attributes    = XmlSchemaComplexType.CloneAttributes(this.attributes);
                group.attributeUses = null;
            }
            return(group);
        }
コード例 #2
0
        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);
        }