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.

BCL Changes in .NET 4

Posted by Jonathan Allen on Oct 27, 2009

Sections
Development
Topics
.NET Framework ,
.NET

Support for complex numbers is essential for any programming language used by mechanical and electrical engineers, as well as most scientific disciplines. This is why it was standard in languages dating back to FORTRAN. Strangely, it is missing from the .NET runtime, forcing developers to roll their own. While the class itself is simple, it makes it very difficult to mix libraries from different sources. The new System.Numerics.Complex class finally offers the common type needed for library interoperability.

Another interesting class is CivicAddress in the System.Device.Location namespace. The purpose of this class is to support geo-location system built into Windows 7 and accessed via the GeoLocationProvider. While technically not meant to act as a generic base class for addresses, it could be used for that purpose.

Many of the key base classes also picked some frequently requested helper function. The Stream class finally has a method for copying from one stream to another. TryParse methods have been added to Guid, Version, and Enum. Enum also picked up a HasFlag method to make reading flags easier. String adds a IsNullOrWhiteSpace method to compliment IsNullOrEmpty, which uses Char.IsWhiteSpace to evaluate the string. New overloads for Path.Combine, String.Concat and String.Join have been added to accept parameter arrays.

In order to make easier to support the many differences between XP, Vista, and Windows 7, there are now a lot more paths available via the Environment.SpecialFolder enumeration. There are also Environment functions for determining if the process and/or operating system is 64 bit.

Also check System.IO Improvements and code contracts in BCL by Nad e Ali Zaidi Posted
  1. Back to top

    Also check System.IO Improvements and code contracts in BCL

    by Nad e Ali Zaidi

Educational Content

Attila Szegedi on JVM and GC Performance Tuning at Twitter

Attila Szegedi talks about performance tuning Java and Scala programs at Twitter: how to approach GC problems, the importance of asynchronous I/O, when to use MySQL/Cassandra/Redis, and much more.

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?