Commit migrated from https://github.com/dotnet/corefx/commit/40206cccc087219c3a0c8282270e349eb48bfbfe