.NET framework: new features

Posted by Budda on Stack Overflow See other posts from Stack Overflow or by Budda
Published on 2010-05-24T03:24:59Z Indexed on 2010/05/24 3:31 UTC
Read the original article Hit count: 355

Filed under:
|
|
|

Few weaks ago I've changed target .NET framework for my application to the 4th version. Recently my resharper told me that my variable "MetaDescription" hides property 'string System.Web.UI.Page.MetaDescription'

After small investigation the peace of code that worked earlier:

    HtmlMeta MetaDescription = new HtmlMeta();
    MetaDescription.Attributes.Add("name", "description");
    MetaDescription.Attributes.Add("content", ((IFriendlySEO)Page).DescriptionString);
    Header.Controls.Add(MetaDescription);

was replaced with much more readable:

    MetaDescription = ((IFriendlySEO)Page).DescriptionString;

(same for MetaKeywords).

Question: is there any useful source that can give a list of such new features?

Thanks.

© Stack Overflow or respective owner

Related posts about .NET

Related posts about ASP.NET