bflattened / bflat

C# as you know it but with Go-inspired tooling (small, selfcontained, and native executables)
GNU Affero General Public License v3.0
3.56k stars 102 forks source link

Add options IlcScanReflection #109

Closed NCLnclNCL closed 8 months ago

NCLnclNCL commented 11 months ago

It is light no reflection with this <IlcScanReflection>false</IlcScanReflection>

MichalStrehovsky commented 8 months ago

The only thing this does is that it disables dataflow analysis. If the program has something like typeof(Foo).GetMethod("Bar") the compiler would make sure this reflection works at runtime. If it's disabled, the compiler won't do anything. This is a "please break my program" option. We already have a "please break my program" option: disable reflection fully.