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)) }
var(arg1, arg2) = fun;
func(arg1, arg2, (IntPtr)(&count), h.AddrOfPinnedObject()).CheckError();
Output.Add(new Triple <string, string, bool>(TrimPairs(arg0, TrimSymbols.Apostrophes | TrimSymbols.Quotes), TrimPairs(arg1, TrimSymbols.Apostrophes | TrimSymbols.Quotes),
=> (arg1, arg2) => func(arg1, arg2);
=> (in T1 arg1, T2 arg2) => source(arg1, arg2);
public BaseMyClass(arg1, arg2, ...) { Init(arg1, arg2, ...); }