Exemplo n.º 1
0
 internal static TInProcComponent CreateInProcComponent <TInProcComponent>(
     VisualStudioInstance visualStudioInstance
     ) where TInProcComponent : InProcComponent =>
 visualStudioInstance.ExecuteInHostProcess <TInProcComponent>(
     type : typeof(TInProcComponent),
     methodName : "Create"
     );
Exemplo n.º 2
0
 internal static TInProcComponent CreateInProcComponent <TInProcComponent>(VisualStudioInstance visualStudioInstance)
     where TInProcComponent : InProcComponent
 {
     // Create MarshalByRefObject that can be used to execute code in the VS process.
     return(visualStudioInstance.ExecuteInHostProcess <TInProcComponent>(
                type: typeof(TInProcComponent),
                methodName: "Create"));
 }