public static IEnumerable <string> Get_Names(IModelMergedViewValueInfo mergedViewValueInfo) { var modelViewValueInfos = (IModelViewValueInfos)mergedViewValueInfo.Parent; var modelValueInfos = ModelMergedViewValueInfosNodeGenerator.GetModelValueInfos(modelViewValueInfos, info => true); return(modelValueInfos.Select(info => info.Name).Where(s => modelViewValueInfos[s] == null)); }
public static ModelValueInfo Get_ModelValueInfo(IModelMergedViewValueInfo mergedViewValueInfo) { return(string.IsNullOrEmpty(mergedViewValueInfo.Name)? null : ModelMergedViewValueInfosNodeGenerator.GetModelValueInfos(mergedViewValueInfo, info => true) .First(info => info.Name == mergedViewValueInfo.Name)); }