コード例 #1
0
        static void Main(string[] args)
        {
            string methodName = args[0];

            paramAry = args;
            ComApiWrapper.initialise();

            for (MethodSelected enum1 = MethodSelected.Initialise; enum1 <= MethodSelected.GetFormTypeCode; enum1++)
            {
                if (enum1.ToString() == methodName)
                {
                    Assembly   assembly = Assembly.GetExecutingAssembly();
                    Type       type     = assembly.GetType("MYOB.Tax.TaxMan.Client.AEComAPI.ComApiWrapper", false, true);
                    MethodInfo method   = type.GetMethod(methodName);
                    method.Invoke(null, null);
                }
            }
        }
コード例 #2
0
 private void OnMethodSelect(AssemblyMethodSignature methodInfo)
 {
     MethodSelected?.Invoke(this, new MethodSignatureEventArgs(methodInfo));
 }