DotNext.Reflection by Roman Sakno

<PackageReference Include="DotNext.Reflection" Version="3.2.1" />

.NET API 162,816 bytes

 ExtensionRegistry

public sealed class ExtensionRegistry : ConcurrentBag<MethodInfo>
Represents registry of extension methods that can be registered for the specified type and be available using strongly typed reflection via Type<T>.
public static void RegisterInstance(MethodInfo method)

Registers extension method as instance method which will be included into strongly typed reflection lookup performed by Get<T> and related methods.

public static void RegisterInstance<TExtension>(TExtension delegate) where TExtension : Delegate

Registers extension method which will be included into strongly typed reflection lookup performed by Unreflect<T> or Get<T> methods.

public static void RegisterStatic<T>(MethodInfo method)

Registers static method for the specified type in ad-hoc manner so it will be available using Get<T> and related methods.

public static void RegisterStatic<T, TExtension>(TExtension delegate) where TExtension : Delegate

Registers static method for the specified type in ad-hoc manner so it will be available using Get<T> and related methods.