Skip to Content
Introducing .NET 4.0: with Visual Studio 2010
book

Introducing .NET 4.0: with Visual Studio 2010

by Alex Mackey
February 2010
Beginner content levelBeginner
400 pages
11h 13m
English
Apress
Content preview from Introducing .NET 4.0: with Visual Studio 2010

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 ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

ASP.NET 3.5 For Dummies®

ASP.NET 3.5 For Dummies®

Ken Cox
ASP.NET 4 Unleashed

ASP.NET 4 Unleashed

Stephen Walther, Kevin Hoffman, Nate Dudek

Publisher Resources

ISBN: 9781430224556Purchase book