System.Xml.Schema.Compiler.IsChoiceFromChoiceSubstGroup C# (CSharp) Method

IsChoiceFromChoiceSubstGroup() private method

private IsChoiceFromChoiceSubstGroup ( XmlSchemaChoice derivedChoice, XmlSchemaChoice baseChoice ) : bool
derivedChoice XmlSchemaChoice
baseChoice XmlSchemaChoice
return bool
        private bool IsChoiceFromChoiceSubstGroup(XmlSchemaChoice derivedChoice, XmlSchemaChoice baseChoice) {
            if (!IsValidOccurrenceRangeRestriction(derivedChoice, baseChoice)) {
                restrictionErrorMsg = Res.GetString(Res.Sch_GroupBaseRestRangeInvalid);
                return false;
            }
            foreach(XmlSchemaParticle particle in derivedChoice.Items) {
                if (GetMappingParticle(particle, baseChoice.Items) < 0) {
                    return false;
                }
            }
            return true;
        }
Compiler