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);