System.Xml.Serialization.XmlSchemaImporter.FindElement C# (CSharp) Method

FindElement() private method

private FindElement ( XmlQualifiedName name ) : XmlSchemaElement
name System.Xml.XmlQualifiedName
return System.Xml.Schema.XmlSchemaElement
        private XmlSchemaElement FindElement(XmlQualifiedName name)
        {
            XmlSchemaElement element = (XmlSchemaElement)Schemas.Find(name, typeof(XmlSchemaElement));
            if (element == null)
                throw new InvalidOperationException(SR.Format(SR.XmlMissingElement, name.ToString()));
            return element;
        }