private static IEnumerable <LineOption> GetUnusedSpecs(InterlinLineChoices curLineChoices) { var allOptions = curLineChoices.LineOptions(); var optionsUsed = curLineChoices.ItemsWithFlids( allOptions.Select(lineOption => lineOption.Flid).ToArray()); return(allOptions.Where(option => !optionsUsed.Any( spec => spec.Flid == option.Flid)).ToList()); }
private static IEnumerable<LineOption> GetUnusedSpecs(InterlinLineChoices curLineChoices) { var allOptions = curLineChoices.LineOptions(); var optionsUsed = curLineChoices.ItemsWithFlids( allOptions.Select(lineOption => lineOption.Flid).ToArray()); return allOptions.Where(option => !optionsUsed.Any( spec => spec.Flid == option.Flid)).ToList(); }