0
private static HipKvp[] GetRequestParameterArray(CaptchaRequestModel request){}
단위 테스트 :
HipKvp[] input = (HipKvp[])privObj.Invoke("GetRequestParameterArray", new CaptchaRequestModel[] { result });
예외 :
MissingMethodException was unhandled by user code:
Attempted to access a missing member.
다른 방법을 시도했지만 작동하지 않았습니다.
알고 [작동하는 (http://stackoverflow.com/questions/8609595/using-privateobject-invoke-to -call-a-static-conversion-function-do-not-compile-i). 철자 및 객체 유형을 확인하십시오. –
http://tackoverflow.com/questions/5396996/how-can-i-use-privateobject-to-access-private-members-of-both-my-class-and-its-p 링크 - 바인딩 플래그를 전달하십시오. –