InfoQ

InfoQ

News

My Bookmarks

Login or Register to enable bookmarks for unlimited time.

The content has been bookmarked!

There was an error bookmarking this content! Please retry.

Obsolete Features in .NET 4

Posted by Jonathan Allen on Mar 09, 2010

Sections
Development
Topics
.NET Framework ,
.NET
Tags
.NET Framework 4.0 ,
.NET Base Class Library

With the introduction of a new CLR and Base Class Library, Microsoft has taken this opportunity to do some house cleaning. Though not much has been actually removed, we do see even longer lists of obsolete types and members.

Some of the deprecations are pretty obvious. For example, it is impossible to catch an ExecutionEngineException so there is no reason for code to make the attempt. Others represent a fundamental change in how the CLR works. A good example of this is anything having to do with Code Access Security or Evidence objects.

The XmlDataDocument class, which was supposed to allow one to treat DataSet objects as if they were XML DOM objects has been marked. While it is hard to think of a real use case for this functionality, one could still achieve it by combining DataSet.WriteXml with the much easier to use XDocument class.

Also in the Data namespace are the key classes in OracleClient such as OracleCommand and OracleConnection. Microsoft is recommending that developers turn to third-party implementations.

On the web side, Microsoft has completely abandoned their mobile offerings for ASP.NET. Instead they direct developers to use ASP.NET MVC. Scott Hanselman outlined this technique back in 2009 in his MIX presentation titled Mobile Web Sites with ASP.NET MVC and the Mobile Browser Definition File. The Mobile Browser Definition File is an open source project run by Microsoft to catalog and programmatically expose the capabilities of all major mobile devices.

Finally there are some methods that were marked obsolete from the beginning. For example, this parallel variant of GroupJoin appears to have been created specifically so that you wouldn’t use it. Presumably this prevents developers from accidentally using the non-parallel variants based on IEnumerable.

Great! by John DeHope Posted
Re: Great! by Jonathan Allen Posted
Mobile development via ASP.NET WebForms backtracking is possible by Binoj Antony Posted
  1. Back to top

    Great!

    by John DeHope

    I'm really happy to hear about this. They should go farther. Clean this stuff out! I wonder if they'll ever do such a thing with the C# language? Aren't there parts of the language (not the clr runtime) that could go?

  2. Back to top

    Re: Great!

    by Jonathan Allen

    I really don't see them being willing to remove language features. Even adding a warning message is a really painful decision for them.

  3. Back to top

    Mobile development via ASP.NET WebForms backtracking is possible

    by Binoj Antony

    When VS 2005 (.NEt 2.0) was introduced, initially they had stopped supporting Web Application Projects, then they had to add the support due to popular demand and deployment hell.
    Possibly the ASP.NET WebForms Mobile development will go the same way.

Educational Content

10 tips on how to prevent business value risk

One category of risk that project teams need to ensure they address is business value failure – delivering a product that fails to provide value for the business investor.

Interview: Software Systems Architecture: Working With Stakeholders Using Viewpoints and Perspectives

InfoQ spoke to the authors of Software Systems Architecture on a couple of new topics, the System Context viewpoint and Agile, which have been added to the second edition.

Beauty Is in the Eye of the Beholder

Alex Papadimoulis discusses ugly code, where it comes from, how to avoid it, and how to get rid of it.

Architecting Visa for Massive Scale and Continuous Innovation

John Davies examines Visa’s architecture and shows how enterprises have architected complex integrations incorporating Hadoop, memcached, Ruby on Rails, and others to deliver innovative solutions.

Max Protect: Scalability and Caching at ESPN.com

Sean Comerford unveils ESPN.com’s architecture, what components are used and why, and the current changes the website goes through.

The Seven Deadly Sins of Enterprise Agile Adoption

Are there repeated patterns of failure on Enterprise Agile Enablement efforts? Sanjiv and Arlen discuss Seven Deadly Sins to avoid when adopting Agile in an enterprise.

Questions for an Enterprise Architect

Erik Dörnenburg answers: What is Enterprise and Evolutionary Architecture?, discussing 4 issues: Turning strategy into execution, Ensuring conformance, Where do the architects sit? Buying or building?

Wrap Your SQL Head Around Riak MapReduce

Sean Cribbs explains what Map-Reduce and Riak are, why and how to use Map-Reduce with Riak, and how to convert SQL queries into their Map-Reduce equivalents.