IEnumerable VS IList VS IQueryable

后端 未结 3 1800
无人及你
无人及你 2020-12-13 07:43

New to the MVC.net scene (and .net for that matter), but seems I find a wide array of options when wanting to populate a \"list\" with data. In my case at the moment, I\'d

3条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-13 08:10

    If your new to .NET and C# I'd spend some time researching and becoming knowledgeable about what the different collection types are, how they differ, and when to use them. You'll use collections so often it you cannot afford to have a "simple one liner" summary understanding like the other answerers posted.

    Here is a good guide on .NET collection types: http://msdn.microsoft.com/en-us/library/0ytkdh4s.aspx

    IQueryable is its own special beast and deserves its own guide: http://msdn.microsoft.com/en-us/library/system.linq.iqueryable.aspx

提交回复
热议问题