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

FindAttribute() private method

private FindAttribute ( XmlQualifiedName name ) : XmlSchemaAttribute
name System.Xml.XmlQualifiedName
return System.Xml.Schema.XmlSchemaAttribute
        private XmlSchemaAttribute FindAttribute(XmlQualifiedName name)
        {
            XmlSchemaAttribute attribute = (XmlSchemaAttribute)Schemas.Find(name, typeof(XmlSchemaAttribute));
            if (attribute == null)
                throw new InvalidOperationException(SR.Format(SR.XmlMissingAttribute, name.Name));

            return attribute;
        }