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