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

GetTopLevelElement() private method

private GetTopLevelElement ( XmlSchemaElement element ) : XmlSchemaElement
element System.Xml.Schema.XmlSchemaElement
return System.Xml.Schema.XmlSchemaElement
        private XmlSchemaElement GetTopLevelElement(XmlSchemaElement element)
        {
            if (!element.RefName.IsEmpty)
                return FindElement(element.RefName);
            return null;
        }