Remove use of RuntimeReflectionExtensions from Microsoft.CSharp (dotnet/corefx#41143)
authorStephen Toub <stoub@microsoft.com>
Tue, 17 Sep 2019 00:38:32 +0000 (20:38 -0400)
committerGitHub <noreply@github.com>
Tue, 17 Sep 2019 00:38:32 +0000 (20:38 -0400)
commit0a7431b7c78fd95da5c28a746b034ec0a6729494
treed53044d480703f51d546733bebe9ec0f7be79989
parentdcc4c5255abb5df9ffa0ad1d38d0263d8640e586
Remove use of RuntimeReflectionExtensions from Microsoft.CSharp (dotnet/corefx#41143)

* Remove use of RuntimeReflectionExtensions from Microsoft.CSharp

The wrappers aren't adding any benefit and are causing us to pull in the extensions type unnecessarily (and doing unnecessary null checks); just call the underlying methods directly.

* Address PR feedback

Commit migrated from https://github.com/dotnet/corefx/commit/4dd07b79be316cf8421a51e0ed6b4a145713080e
src/libraries/Microsoft.CSharp/src/Microsoft/CSharp/RuntimeBinder/Semantics/Tree/MethodInfo.cs
src/libraries/Microsoft.CSharp/src/Microsoft/CSharp/RuntimeBinder/SymbolTable.cs