internal static MissingConstructorException Create <TSignature>() where TSignature : Delegate { var(parameters, target) = DelegateType.GetInvokeMethod <TSignature>().Decompose(method => method.GetParameterTypes(), method => method.ReturnType); return(new MissingConstructorException(target, parameters)); }
internal static MissingMethodException Create <T, D>(string methodName) where D : Delegate { var(parameters, returnType) = DelegateType.GetInvokeMethod <D>().Decompose(method => method.GetParameterTypes(), method => method.ReturnType); return(new MissingMethodException(typeof(T), methodName, returnType, parameters)); }