npoi icon indicating copy to clipboard operation
npoi copied to clipboard

Remove reflections on enums & dereference Enums.NET

Open karakasa opened this issue 10 months ago • 2 comments

Prepare NPOI for AOT, p1.

karakasa avatar Aug 12 '23 05:08 karakasa

Why dereference Enums.NET? Is it using reflection?

tonyqus avatar Aug 12 '23 22:08 tonyqus

Yes. And the lib isn't annotated with AOT attributes so the trimmer cannot preserve enums' metadata.

https://github.com/TylerBrinkley/Enums.NET/blob/a35664d000fb3e7c4f75ec303b8dc419837ab0d4/Src/Enums.NET/Enums.cs#L106C1-L110C7

karakasa avatar Aug 13 '23 03:08 karakasa