.Net 4.0, New methods in existing classes - .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.

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

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

This link shows the updated list, which gammelgul posted, for RTM:
http://msdn.microsoft.com/en-us/library/ms171868(v=VS.100).aspx

Related

How do I use JavaScriptSerializer in ASP.NET 5?

I am porting my project to DNX-Core 5.0 and trying to get work but I cannot find the JavaScriptSerializer and AppSettingReader classes. I know the System.Web is removed and so please anyone help me to find the alternative of using them.
Is there any Nuget available to include them?
The ASP.Net 5 team dropped the JavaScriptSerializer in favor of the widely used Newtonsoft.Json package, but they did provide a JsonOutputFormatter and a JsonInputFormatter for use with MVC to be able to return objects more directly.
For the AppSettingReader you'll want to look at the new ASP.Net 5 Configuration Model. This has been detailed in a few blog posts while it's being built. These posts only detail how to load out individual fields, but the tests in the Options Model show that you can bind directly to an object.

Migrating project from .NET 2.0 to .NET 4.0

I'm migrating my solutions from .NET 2.0 to .NET 4.0. I open the solution file in VS 2010 and follow migration wizard.
While building the solution and comparing the changes with the server copy (since solution is under source control VSTS), I surprisingly found that
1) the public classes were changed to 'internal' and
2) the 'public static' properties were changed to 'internal static'
It gave me problem because the output assembly is referred in other projects.
Can someone explain why does it happen? Also, are there any other such changes taking place behind the scene? Or Am I doing something wrong ?
(Note: I have ReSharper 5.1 installed but I think it has no place in this case.)
ReSharper may have given the suggestion to make methods static for those methods which are not using any instance variable or method within it. This is what I have observed.
Similarly, if the methods are not accessed from any other project/assembly, it may give you suggestion to make them internal.

Where can I find a conclusive list of features in .net 4?

I've searched the web, and I can only find marketing material on .net 4.
I would like a more detailed look at the new features from a developers point of view, not high level MS business marketing.
Can someone point me in the right direction please.
Thanks in advance.
Scott Gu has a nice post which summarizes the new features in .NET 4 as well as visual studio 2010 along with ASP.NET MVC 2, and at the bottom he also has linked his blog posts that contain info about new .NET 4 features
http://weblogs.asp.net/scottgu/archive/2010/04/12/visual-studio-2010-and-net-4-released.aspx
Edit: I searched for this, but couldn't find it in the first go (MSDN post), nubm has also referred this in his answer.
http://msdn.microsoft.com/en-us/library/ms171868.aspx

How to debug into system.servicemodel classes?

How can i debug system.sevicemodel classes in my application?
It sounds like your interested in debugging the .NET framework code itself? If so, Microsoft has released source code to the public for much of the .NET framework.
However, to the best of my knowledge this does not include additions such WF, WPF and WCF (system.servicemodel), so you may be out of luck just yet. I could be wrong though, so it might worthwhile to review the following articles and see about setting up for debugging into .NET source to verify that these additions have not been added in the last year or so.
Check out ScottGu's announcement on releasing .NET source code to the public and how to get started. Be sure to follow some of the links in the announcement, specifically Shawn Burkes Configuring Visual Studio to Debug .NET Framework Source Code.
If you decide to head down this road, it might be worthwhile to read these two posts by John Robbins, Additional .NET Framework Source Code Debugging Tricks and an overview of the .NET Mass Downloader Utility.
If you had a more specific question in mind, please let us know!
Good Luck!
Z

System.Data.DataTable in Silverlight 4?

Does anyone know if System.Data.DataTable is now supported in Silverlight 4 beta? In the past I’ve used this for databinding in ASP.NET and WinForm projects where the UI and objects needs to be constructed at runtime. If not, is it in the road map?
No this is not in SL4 and is unlikely to ever make it into later versions either. It represents an older approach to data access. In SL you would be expected to integrate with Entity Framework via WCF for this sort of functionality.
Codeplex here have developed a lightweight datatable that can get you by in some situations
There is an implementation for DataTable in Mono . I tried to port it to Silverlight once but it has a lot of dependencies in Xml so I couldn't port the whole things.
Yes. It would be great if we can get light-version of it.
ComponentOne have an implementation of the DataTable