DataDictionary.Types.Structure.StructureElementIsInherited C# (CSharp) Méthode

StructureElementIsInherited() public méthode

Indicates if the given structure element is inherited from an interface or not
public StructureElementIsInherited ( StructureElement anElement ) : bool
anElement StructureElement
Résultat bool
        public bool StructureElementIsInherited(StructureElement anElement)
        {
            bool retVal = false;

            foreach (Structure inheritedStructure in Interfaces)
            {
                if (inheritedStructure != null)
                {
                    foreach (StructureElement inheritedElement in inheritedStructure.Elements)
                    {
                        if (anElement.Name.Equals(inheritedElement.Name))
                        {
                            retVal = true;
                            break;
                        }
                    }
                }
            }

            return retVal;
        }