public bool CallFunction(arg1, arg2)
     {
         Type ComType;
         object ComObject;
 
         ComType = Type.GetTypeFromProgID("Registered.ComClass");
         // Create an instance of your COM Registered Object.
         ComObject = Activator.CreateInstance(ComType);
 
         object[] args = new object[2];
         args[0] = arg1;
         args[1] = arg2;
 
         // Call the Method and cast return to whatever it should be.
         return (bool)methodCOM.InvokeMember("MethodToCall", BindingFlags.InvokeMethod, null, ComObject, args))
     }
示例#2
0
 var(arg1, arg2) = fun;
示例#3
0
 func(arg1, arg2, (IntPtr)(&count), h.AddrOfPinnedObject()).CheckError();
示例#4
0
 Output.Add(new Triple <string, string, bool>(TrimPairs(arg0, TrimSymbols.Apostrophes | TrimSymbols.Quotes), TrimPairs(arg1, TrimSymbols.Apostrophes | TrimSymbols.Quotes),
 => (arg1, arg2) => func(arg1, arg2);
示例#6
0
 => (in T1 arg1, T2 arg2) => source(arg1, arg2);
示例#7
0
 public BaseMyClass(arg1, arg2, ...)
 {
     Init(arg1, arg2, ...);
 }