Commit migrated from https://github.com/dotnet/corefx/commit/71d06c17e2822492abcf4fa1ebfd5e231575f6b6