开发者

What are new features in linq in c#4.0? [closed]

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, 开发者_运维知识库references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 10 years ago.

I am C# developer , i like to use linq very much. i like to know new features of linq in c#4.0.i already know ZIP method there.Is there Any new methods like That?


There is the new Zip() extension method http://msdn.microsoft.com/en-us/library/dd267698.aspx , the new EF 4.0 http://msdn.microsoft.com/en-us/data/aa937723 While it isn't directly LINQ, they created the Tuple class tree http://msdn.microsoft.com/en-us/library/system.tuple.aspx , and expanded Action<T1, T2...> and Func<T1, T2...> up to 10 parameters. I'm not sure if covariance and contravariance should be listed here (IEnumerable<T> is covariant, and "he" is one of the basic "objects" of LINQ)


A number of these changes here are related to LINQ:

http://msdn.microsoft.com/en-us/library/ex6y04yf.aspx


PLINQ (Parallel LINQ) is an interesting addition in 4.0: start reading at http://msdn.microsoft.com/en-us/library/dd460688.aspx

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜