C# generic algorithm for containers not sharing a common interface

后端 未结 0 1195
醉酒成梦
醉酒成梦 2020-12-01 18:18

In the following code that works:

static void DisableItems(IEnumerable items) // Why not ICollection items
{
    foreach (var it         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题