ekonbenefits / impromptu-interface

Static interface to dynamic implementation (duck casting). Uses the DLR combined with Reflect.Emit.
Apache License 2.0
655 stars 67 forks source link

Refactor to allow a collectable version of impromptu interface #52

Closed jbtule closed 8 months ago

jbtule commented 8 months ago

Came across and issue for "Collectible Assembly in non-collectible AssemblyLoadContext", Big refactor of impromptu interface to keep existing behavior, but allow usage in collectable mode (and saveable mode for old .net framework)

https://learn.microsoft.com/en-us/dotnet/core/compatibility/core-libraries/7.0/collectible-assemblies