Backported to Roslyn 1.1.20524.4 (.NET 4.0) and VS2010.