Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

.Net 4.0, New methods in existing classes

Tags:

.net-4.0

Is there a blog or MSDN article, which lists all the new methods which are added in .Net 4.0 in existing classes? I could not find any.

Two which I found on blogs till now:

String.IsNullOrWhiteSpace
Enum.HasFlag

Are there more such methods added which anybody found? If yes, please share.

like image 478
Yogesh Avatar asked Feb 28 '23 04:02

Yogesh


2 Answers

On the blog of the .NET BCL (base class library) team, there is a list of changes, although it is for .NET 4 Beta 1 and 2:

  • http://blogs.msdn.com/bclteam/archive/2009/05/22/what-s-new-in-the-bcl-in-net-4-beta-1-justin-van-patten.aspx

  • http://blogs.msdn.com/bclteam/archive/2009/10/21/what-s-new-in-the-bcl-in-net-4-beta-2-justin-van-patten.aspx

like image 170
gammelgul Avatar answered Mar 05 '23 16:03

gammelgul


Theres a few new ones on the page class:

Page.MetaDescription = "";
Page.MetaKeywords = "";

Plus a new 301 method:

Response.RedirectPermanent("~/page.aspx");

I guess this isn't really the best way to approach it as many of the new features wouldn't make much sense without being put into context.

This document highlights most of the new features if you want to get up to speed on .net 4:

  • ASP.NET 4 and Visual Studio 2010 Web Development Overview
like image 31
rtpHarry Avatar answered Mar 05 '23 16:03

rtpHarry