/// <summary> /// Получить дочерние элементы по типу /// </summary> public IEnumerable <IElementMicrostation> GetSubElementsByType(ElementMicrostationType elementMicrostationType) => SubElements. Where(subElement => subElement.ElementType == elementMicrostationType);
public static MsdElementType ToMsdMicrostation(ElementMicrostationType elementMicrostationType) => elementMicrostationType switch {
/// <summary> /// Найти элементы в модели по типу /// </summary> public IEnumerable <IElementMicrostation> GetModelElementsMicrostation(ElementMicrostationType includeTypeMicrostation) => GetModelElements(new List <ElementMicrostationType>() { includeTypeMicrostation }). Select(element => ConvertMicrostationElements.ToMicrostationElement(element, ToOwnerMicrostation()));