public async Task NotifyMultiSelectedAsync(bool[] selected) { var selectedIndexes = Enumerable.Range(0, selected.Length).Where(i => selected[i]); ComponentValue = ItemsArray.Where((item, index) => selectedIndexes.Contains(index)).Select(x => x.SelectedValue).ToArray(); await Task.CompletedTask; }
public void NotifyMultiSelected(int[] selectedIndexes) { //var selectedIndexes = Enumerable.Range(0, selected.Length).Where(i => selected[i]); ComponentValue = ItemsArray.Where((item, index) => selectedIndexes.Contains(index)).Select(x => x.SelectedValue).ToArray(); }