Imported from http://netfx.codeplex.com/