internal override bool ParticleEquals(XmlSchemaParticle other) { XmlSchemaGroupBase gb = other as XmlSchemaGroupBase; if (gb == null) { return(false); } if (this.GetType() != gb.GetType()) { return(false); } if (this.ValidatedMaxOccurs != gb.ValidatedMaxOccurs || this.ValidatedMinOccurs != gb.ValidatedMinOccurs) { return(false); } if (this.CompiledItems.Count != gb.CompiledItems.Count) { return(false); } for (int i = 0; i < CompiledItems.Count; i++) { XmlSchemaParticle p1 = this.CompiledItems [i] as XmlSchemaParticle; XmlSchemaParticle p2 = gb.CompiledItems [i] as XmlSchemaParticle; if (!p1.ParticleEquals(p2)) { return(false); } } return(true); }
internal override bool ParticleEquals(XmlSchemaParticle other) { XmlSchemaGroupBase xmlSchemaGroupBase = other as XmlSchemaGroupBase; if (xmlSchemaGroupBase == null) { return(false); } if (base.GetType() != xmlSchemaGroupBase.GetType()) { return(false); } if (base.ValidatedMaxOccurs != xmlSchemaGroupBase.ValidatedMaxOccurs || base.ValidatedMinOccurs != xmlSchemaGroupBase.ValidatedMinOccurs) { return(false); } if (this.CompiledItems.Count != xmlSchemaGroupBase.CompiledItems.Count) { return(false); } for (int i = 0; i < this.CompiledItems.Count; i++) { XmlSchemaParticle xmlSchemaParticle = this.CompiledItems[i] as XmlSchemaParticle; XmlSchemaParticle other2 = xmlSchemaGroupBase.CompiledItems[i] as XmlSchemaParticle; if (!xmlSchemaParticle.ParticleEquals(other2)) { return(false); } } return(true); }