src/Misc/EFTools/XmlCore/Model/Validation/AttributeContentValidator.cs
/// <summary>
///     Returns the XmlSchemaElement specified by the given qname defined in the given particle.
/// </summary>
/// <param name="particle"></param>
/// <param name="qname"></param>
/// <returns></returns>
Returns the XmlSchemaElement specified by the given qname defined in the given particle.
Returns the XmlSchemaElement specified by the given qname defined in the given particle .
private XmlSchemaElement GetXmlSchemaElementFromParticle(XmlSchemaParticle particle, XmlQualifiedName qname)
        {
            XmlSchemaElement xe = null;
            var xsgb = particle as XmlSchemaGroupBase;
            var xsgr = particle as XmlSchemaGroupRef;
            if (xsgb != null)
            {
                xe = GetXmlElementFromXmlSchemaGroupBase(xsgb, qname);
            }
            else if (xsgr != null)
            {
                xe = GetXmlElementFromXmlSchemaGroupBase(xsgr.Particle, qname);
            }
            else if (particle != null)
            {
                Debug.Fail("Unable to handle case where particle type is " + particle.GetType());
            }
            return xe;
        }
private XmlSchemaElement GetXmlSchemaElementFromParticle ( XmlSchemaParticle particle , XmlQualifiedName qname ) { XmlSchemaElement xe = null ; var xsgb = particle as XmlSchemaGroupBase ; var xsgr = particle as XmlSchemaGroupRef ; if ( xsgb != null ) { xe = GetXmlElementFromXmlSchemaGroupBase ( xsgb , qname ) ; } else if ( xsgr != null ) { xe = GetXmlElementFromXmlSchemaGroupBase ( xsgr . Particle , qname ) ; } else if ( particle != null ) { Debug . Fail ( " " + particle . GetType ( ) ) ; } return xe ; }
Returns the XmlSchemaElement specified by the given qname defined in the given particle.
Returns the XmlSchemaElement specified by the given qname defined in the given particle .
None
particle
XmlSchemaParticle
None
qname
XmlQualifiedName
None