コード例 #1
0
        public static ModuleModel GetModule(this IElement element)
        {
            var found = element.GetParentPath().Reverse().FirstOrDefault(x => x.SpecializationTypeId == ModuleModel.SpecializationTypeId);

            if (found != null)
            {
                var module = new ModuleModel(found);
                return(module);
            }
            return(null);
        }
コード例 #2
0
 public bool Equals(ModuleModel other)
 {
     return(Equals(_element, other?._element));
 }