src/Misc/EFTools/XmlCore/Model/EFElement.cs
/// <summary>
///     A helper function to get an attribute value from the encapsulated XLinq node
///     in an easy way that ignores namespaces.
/// </summary>
/// <param name="attributeName"></param>
/// <returns></returns>
A helper function to get an attribute value from the encapsulated XLinq node
in an easy way that ignores namespaces.
A helper function to get an attribute value from the encapsulated XLinq node in an easy way that ignores namespaces .
internal XAttribute GetAttribute(string attributeName)
        {
            if (XElement != null)
            {
                var attr = XElement.FirstAttribute;
                while (attr != null)
                {
                    if (attr.Name.LocalName == attributeName)
                    {
                        return attr;
                    }
                    attr = attr.NextAttribute;
                }
            }
            return null;
        }
internal XAttribute GetAttribute ( string attributeName ) { if ( XElement != null ) { var attr = XElement . FirstAttribute ; while ( attr != null ) { if ( attr . Name . LocalName == attributeName ) { return attr ; } attr = attr . NextAttribute ; } } return null ; }
A helper function to get an attribute value from the encapsulated XLinq node
in an easy way that ignores namespaces.
A helper function to get an attribute value from the encapsulated XLinq node in an easy way that ignores namespaces .
None
attributeName
string
None