Pros and Cons of using Observable Collection over IEnumerable

后端 未结 4 1345
轮回少年
轮回少年 2020-12-18 07:42

I am trying to decide if I want to switch all of my IEnumerable collections over to Observable Collections. I cannot find a good explanation of this. What are t

4条回答
  •  粉色の甜心
    2020-12-18 08:23

    I'd probably frame the answer to your question this way: Does your application need to be notified when your collections change content? If so, then such a change is possibly warranted. My understanding is that the overarching feature of Observable collections is that they provide a mechanism for notifications when the collection changes, whereas IEnumerable provides only a single-iteration enumerator.

    I hope that helps.

提交回复
热议问题