src/Misc/EFTools/XmlCore/Model/EFContainer.cs
/// <summary>
///     Get a child EFNameableItem by local name using the passed in comparison type
/// </summary>
/// <param name="localName"></param>
/// <returns></returns>
Get a child EFNameableItem by local name using the passed in comparison type
Get a child EFNameableItem by local name using the passed in comparison type
internal EFNameableItem GetFirstNamedChildByLocalName(string localName, bool ignoreCase)
        {
            foreach (var child in Children)
            {
                var nameable = child as EFNameableItem;
                if (nameable != null)
                {
                    if (nameable.LocalName.Value != null)
                    {
                        var comparisonType = (ignoreCase ? StringComparison.CurrentCultureIgnoreCase : StringComparison.CurrentCulture);
                        if (nameable.LocalName.Value.Equals(localName, comparisonType))
                        {
                            return nameable;
                        }
                    }
                }
            }
            return null;
        }
internal EFNameableItem GetFirstNamedChildByLocalName ( string localName , bool ignoreCase ) { foreach ( var child in Children ) { var nameable = child as EFNameableItem ; if ( nameable != null ) { if ( nameable . LocalName . Value != null ) { var comparisonType = ( ignoreCase ? StringComparison . CurrentCultureIgnoreCase : StringComparison . CurrentCulture ) ; if ( nameable . LocalName . Value . Equals ( localName , comparisonType ) ) { return nameable ; } } } } return null ; }
Get a child EFNameableItem by local name using the passed in comparison type
Get a child EFNameableItem by local name using the passed in comparison type
None
localName
string
None
ignoreCase
bool