/// <summary> 获取指定分组的修正关键字 </summary> public static List <OPT.Product.SimalorManager.RegisterKeys.SimON.BOX> FilterByGroup(this EclKeyType group, List <OPT.Product.SimalorManager.RegisterKeys.SimON.BOX> modifys) { List <string> findKeys = group.GetGroupKeyNames(); if (modifys == null) { return(null); } // 默认取第一个修改参数做判断 return(modifys.FindAll(l => findKeys.Contains(l.KeyName.Trim()))); }
/// <summary> 获取指定分组的修正关键字 </summary> public static List <ModifyKey> FilterByGroup(this EclKeyType group, List <ModifyKey> modifys) { List <string> findKeys = group.GetGroupKeyNames(); if (modifys == null) { return(null); } // 默认取第一个修改参数做判断 return(modifys.FindAll(l => l.ObsoverModel.Count > 0).FindAll(l => findKeys.Contains(l.ObsoverModel[0].KeyName))); }