|
|
|
|
|
by kant2002
400 days ago
|
|
I think you overestimate ability of Dotnet to trim unused things. As a person who spend a lot of time wandering across ecosystem and measuring what can be done, I would say we have very bulky and complicated libraries in the .Net. Just bringing HttpClient(without SSL support) add 6Mb of generated code. Minimal API gets you additional 21 Mb. And we not even talk about desktop applications here. Reflection is very very core of .Net ecosystem and you cannot reliably trim with how we use it currently |
|
But otherwise yes, reflection is used heavily even when completely unnecessary.