Table of Contents

Method TryCreateDelegate

Namespace
MonoMod.Utils
Assembly
MonoMod.Utils.dll

TryCreateDelegate<T>(MethodInfo?)

[SuppressMessage("Design", "CA1031:Do not catch general exception types", Justification = "If an expection is thrown here, we want to return null as our failure case.")]
public static T? TryCreateDelegate<T>(this MethodInfo? mi) where T : Delegate

Parameters

mi MethodInfo

Returns

T

Type Parameters

T