Gemeinsam zu mehr Effizienz in der Anwendungserstellung
K |
K |
||
Zeile 11: | Zeile 11: | ||
* Eigenschaft als Object statt als Variant | * Eigenschaft als Object statt als Variant | ||
- | <source>object Fixture { [return: MarshalAs(UnmanagedType.IDispatch)] get; }</source> | + | <source>object Fixture { [return: MarshalAs(UnmanagedType.IDispatch)] get; } |
+ | |||
+ | object Parent { [param: MarshalAs(UnmanagedType.IDispatch)] set; [return: MarshalAs(UnmanagedType.IDispatch)] get; }</source> |
[MarshalAs(UnmanagedType.IDispatch)]
void CallTestByName(string procName, [MarshalAs(UnmanagedType.IDispatch)] out object test2Add);
object[] parameters = { getTestClassFactoryProcedureName(className), new Object() }; ParameterModifier p = new ParameterModifier(2); p[1] = true; ParameterModifier[] modifiers = { p }; OfficeApplication.GetType().InvokeMember("Run", BindingFlags.InvokeMethod, null, OfficeApplication, parameters, modifiers, null, null);
object Fixture { [return: MarshalAs(UnmanagedType.IDispatch)] get; } object Parent { [param: MarshalAs(UnmanagedType.IDispatch)] set; [return: MarshalAs(UnmanagedType.IDispatch)] get; }