Reflection-block some types in CoreLib (dotnet/corert#5286)
authorMichal Strehovský <MichalStrehovsky@users.noreply.github.com>
Wed, 24 Jan 2018 16:00:14 +0000 (17:00 +0100)
committerJan Kotas <jkotas@microsoft.com>
Wed, 24 Jan 2018 20:30:32 +0000 (12:30 -0800)
commit9b947ca3059da9416168b39bebb2717433ffd4d3
tree2a4975f164928d2e2704dcfd9c9689fbc8b43d03
parentf3f12666c822d8b4db8a9ca051618b6dc2420c68
Reflection-block some types in CoreLib (dotnet/corert#5286)

This saves 50 kB on a hello world app.

This is using the existing ReflectionBlocked attribute to manually block public types that get otherwise blocked by the IL2IL toolchain in Project N. These types are public within the repo, but should be considered private implementation details everywhere else.

Wrote a small tool that would let me identify these: https://gist.github.com/MichalStrehovsky/e2ddec899d3e0db6eba95bf68694b40e. There is more.

Signed-off-by: dotnet-bot <dotnet-bot@microsoft.com>
src/mscorlib/shared/System/Reflection/SignatureTypeExtensions.cs