0
我想创建一个保存方法MAILMESSAGE,它抛出下面的错误:“System.Reflection.TargetParameterCountException”,而MAILMESSAGE调用方法mailwriter
An unhandled exception of type 'System.Reflection.TargetParameterCountException' occurred in mscorlib.dll Additional information: Parameter count mismatch.
下面是覆盖方法:
_sendMethod.Invoke(
Message,
BindingFlags.Instance | BindingFlags.NonPublic,
null,
new object[] { _mailWriter, true },
null);