4.11. Changes to Existing Functionality

.NET 4.0 enhances a number of existing commonly used methods and classes.

4.11.1. Action and Func Delegates

Action and Func delegates now can accept up to 16 generic parameters, which might result in unreadable code.

4.11.2. Compression Improvements

The 4GB size limit has been removed from System.IO.Compression methods. The compression methods in DeflateStream and GZipStream do not try to compress already compressed data, resulting in better performance and compression ratios.

4.11.3. File IO

.NET 4.0 introduces a new method to the File class called File.ReadLines(), which returns IEnumerable<string> rather than a string array. Reading a file one line at a time is much more efficient than loading the ...

Get Introducing .NET 4.0: with Visual Studio 2010 now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.