Monday, 7 May 2012

C# :LINQ with IEnumerable


See the example below. Both examples are the same. You may see var type more than  IEnumerable<T>. You should know members_query is IEnumerable<T> type.

http://msdn.microsoft.com/en-us/library/9eekhta0.aspx
--------------------------------------------------------------------------------
var members_query = from m in people select m;

IEnumerable<Member> members_query = from m in people select m;
--------------------------------------------------------------------------------

No comments:

Post a Comment