3
리플렉션을 사용하여 정적 메서드 호출
네임 스페이스에 다음 mySolution.Macros과 같은 여러 정적 클래스가 있습니다. static class Indent{ public static void Run(){ // implementation } // other helper methods } 그래서 내 질문은 반사의 도움으로 어떻게 그 메소드를 호출 할 수 있는가입니다. 정적이 아닌 방법이 있으면 다음과 같이 할 수 있습니다. var macroClasses = Assembly.GetExecutingAssembly().GetTypes().Where( x …
111
c#
reflection
dynamic