src/Misc/EFTools/XmlCore/Model/EFElement.cs
/// <summary>
///     A helper function to get an attribute value from the encapsulated XLinq node
///     paying attention to the attribute's namespace.
/// </summary>
/// <param name="attributeName"></param>
/// <returns></returns>
A helper function to get an attribute value from the encapsulated XLinq node
paying attention to the attribute's namespace.
A helper function to get an attribute value from the encapsulated XLinq node paying attention to the attribute ' s namespace .
internal XAttribute GetAttribute(string attributeName, string attributeNamespace)
        {
            var attr = XElement.FirstAttribute;
            while (attr != null)
            {
                if (attr.Name.LocalName == attributeName
                    &&
                    attr.Name.NamespaceName == attributeNamespace)
                {
                    return attr;
                }
                attr = attr.NextAttribute;
            }
            return null;
        }
internal XAttribute GetAttribute ( string attributeName , string attributeNamespace ) { var attr = XElement . FirstAttribute ; while ( attr != null ) { if ( attr . Name . LocalName == attributeName && attr . Name . NamespaceName == attributeNamespace ) { return attr ; } attr = attr . NextAttribute ; } return null ; }
A helper function to get an attribute value from the encapsulated XLinq node
paying attention to the attribute's namespace.
A helper function to get an attribute value from the encapsulated XLinq node paying attention to the attribute ' s namespace .
None
attributeName
string
None
attributeNamespace
string