Simplify loop add with UnionWith method. (dotnet/corefx#38300)
authorTim <xuchonglei@126.com>
Fri, 7 Jun 2019 02:56:56 +0000 (21:56 -0500)
committerStephen Toub <stoub@microsoft.com>
Fri, 7 Jun 2019 02:56:56 +0000 (22:56 -0400)
commitf6781579949f2bb0b5b64cb60dbbaf3b0f5edffa
tree11e60d0b37ea9b9e374648eaac24dd23967191a8
parente7fd76e8d787a27ca699a9b930d7a390c8508dc9
Simplify loop add with UnionWith method. (dotnet/corefx#38300)

Commit migrated from https://github.com/dotnet/corefx/commit/78c4949d341dc51739e4027611f267700e58b60e
src/libraries/System.Linq/src/System/Linq/Except.cs
src/libraries/System.Linq/src/System/Linq/Intersect.cs