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;
}