Sgml.ElementDecl.FindAttribute C# (CSharp) Method

FindAttribute() public method

Finds the attribute definition with the specified name.
If the attribute list has not yet been initialised.
public FindAttribute ( string name ) : AttDef
name string The name of the to find.
return AttDef
        public AttDef FindAttribute(string name)
        {
            if (m_attList == null)
                throw new InvalidOperationException("The attribute list for the element declaration has not been initialised.");

            AttDef a;
            m_attList.TryGetValue(name.ToUpperInvariant(), out a);
            return a;
        }