Method TryCreateDelegate
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
miMethodInfo
Returns
- T
Type Parameters
T