Remove unnecessary System.Linq usage from Microsoft.CSharp (dotnet/corefx#41552)
authorStephen Toub <stoub@microsoft.com>
Fri, 4 Oct 2019 20:53:22 +0000 (16:53 -0400)
committerGitHub <noreply@github.com>
Fri, 4 Oct 2019 20:53:22 +0000 (16:53 -0400)
commit0d1c9d9a6eda8a2bec2dbec3e6158a93cd673a56
tree6635fb0a0fa1e472a5b5d3d92dcaabedd5314445
parentd65600b4b0d08bd151f1c981add0ba08c4d12a67
Remove unnecessary System.Linq usage from Microsoft.CSharp (dotnet/corefx#41552)

Most of the usage was just as easily (if not more easily) done without LINQ.  In some cases the use was entirely superfluous (e.g. MethodReturningNewArray().ToArray()).

Commit migrated from https://github.com/dotnet/corefx/commit/09698dd91c53e123d3a0f1240b5f611b3c14639c
src/libraries/Microsoft.CSharp/src/Microsoft/CSharp/RuntimeBinder/RuntimeBinder.cs
src/libraries/Microsoft.CSharp/src/Microsoft/CSharp/RuntimeBinder/RuntimeBinderExtensions.cs
src/libraries/Microsoft.CSharp/src/Microsoft/CSharp/RuntimeBinder/Semantics/Binding/Better.cs
src/libraries/Microsoft.CSharp/src/Microsoft/CSharp/RuntimeBinder/Semantics/ExpressionBinder.cs
src/libraries/Microsoft.CSharp/src/Microsoft/CSharp/RuntimeBinder/Semantics/MemberLookup.cs
src/libraries/Microsoft.CSharp/src/Microsoft/CSharp/RuntimeBinder/Semantics/Types/TypeArray.cs
src/libraries/Microsoft.CSharp/src/Microsoft/CSharp/RuntimeBinder/Semantics/Types/TypeManager.cs
src/libraries/Microsoft.CSharp/src/Microsoft/CSharp/RuntimeBinder/Syntax/NameTable.cs