FastGenericNew
FastGenericNew copied to clipboard
Question: why use Reflection.Emit while we can just invoke type directly
While browsing along source generated code, i notice you use System.Reflection.Emit and emit IL directly through delegate. The question is why?, i thought this package suppose to be NativeAOT friendly but System.Reflection.Emit is causing trouble in trimming. Why cant we just invoke type constructor directly. Isn't generate code calling type constructor is fastest?