Extension method and dynamic object

后端 未结 3 2071
佛祖请我去吃肉
佛祖请我去吃肉 2020-11-22 04:50

I am going to summarize my problem into the following code snippet.

List list = new List() { 5, 56, 2, 4, 63, 2 };
Console.WriteLine(li         


        
3条回答
  •  -上瘾入骨i
    2020-11-22 05:17

    Because First() is not a method of List. It is defined in Linq Extension to IEnumerable<>

提交回复
热议问题