HasParticleRef() static private method

static private HasParticleRef ( XmlSchemaParticle particle ) : bool
particle XmlSchemaParticle
return bool
Ejemplo n.º 1
0
        internal XmlSchemaObject Clone(XmlSchema parentSchema)
        {
            XmlSchemaGroup newGroup = (XmlSchemaGroup)MemberwiseClone();

            if (XmlSchemaComplexType.HasParticleRef(_particle, parentSchema))
            {
                newGroup._particle = XmlSchemaComplexType.CloneParticle(_particle, parentSchema) as XmlSchemaGroupBase;
            }
            newGroup._canonicalParticle = XmlSchemaParticle.Empty;
            return(newGroup);
        }
        internal override XmlSchemaObject Clone()
        {
            XmlSchemaGroup newGroup = (XmlSchemaGroup)MemberwiseClone();

            if (XmlSchemaComplexType.HasParticleRef(this.particle))
            {
                newGroup.particle = XmlSchemaComplexType.CloneParticle(this.particle) as XmlSchemaGroupBase;
            }
            newGroup.canonicalParticle = XmlSchemaParticle.Empty;
            return(newGroup);
        }
        internal XmlSchemaObject Clone(XmlSchema parentSchema)
        {
            XmlSchemaGroup group = (XmlSchemaGroup)base.MemberwiseClone();

            if (XmlSchemaComplexType.HasParticleRef(this.particle, parentSchema))
            {
                group.particle = XmlSchemaComplexType.CloneParticle(this.particle, parentSchema) as XmlSchemaGroupBase;
            }
            group.canonicalParticle = XmlSchemaParticle.Empty;
            return(group);
        }