Creating a ReactiveUI derived collection with more elements than the original

后端 未结 2 1980
有刺的猬
有刺的猬 2021-02-03 11:04

Is it possible to create a ReactiveUI derived collection that has more elements in it than the original?

I\'ve seen that there is a way of filtering a collection, and se

2条回答
  •  半阙折子戏
    2021-02-03 11:13

    Hmm...I'm not all that familiar with ReactiveUI, but just reading thru, it looks like you need to alter where your SelectMany goes:

    var jam = cars.SelectMany(x => x.Passengers).CreateDerivedCollection(p => p);
    

提交回复
热议问题