Cast LINQ result to ObservableCollection

后端 未结 6 1197
死守一世寂寞
死守一世寂寞 2020-11-29 23:55

The fact that it is a LINQ result might perhaps not be relevant for the question, but I\'m mentioning it anyway - since this is the context which has resulted in this questi

6条回答
  •  夕颜
    夕颜 (楼主)
    2020-11-30 00:13

    var linqResults = foos.Where(f => f.Name == "Widget");
    
    var observable = new ObservableCollection(linqResults);
    

提交回复
热议问题