Stashbox by Peter Csajtai

<PackageReference Include="Stashbox" Version="5.12.1" />

 IMetadataWrapper

public interface IMetadataWrapper : IResolver
using System; using System.Linq.Expressions; using System.Runtime.CompilerServices; namespace Stashbox.Resolution { [System.Runtime.CompilerServices.NullableContext(1)] public interface IMetadataWrapper : IResolver { Expression WrapExpression(TypeInformation originalTypeInformation, TypeInformation wrappedTypeInformation, ServiceContext serviceContext); bool TryUnWrap(Type type, out Type unWrappedType, out Type metadataType); } }