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 .
protected string GetAttributeValue(string attributeName)
        {
            var attr = XElement.FirstAttribute;
            while (attr != null)
            {
                if (attr.Name.LocalName == attributeName)
                {
                    return attr.Value;
                }
                attr = attr.NextAttribute;
            }
            return null;
        }
protected string GetAttributeValue ( string attributeName ) { var attr = XElement . FirstAttribute ; while ( attr != null ) { if ( attr . Name . LocalName == attributeName ) { return attr . Value ; } 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