Example #1
0
    static DTE?GetDTE(Process process)
    {
        var namePattern = $@"!VisualStudio\.DTE\.(\d+\.\d+):{process.Id}";

        return((DTE?)RunningObjectTable.GetRunningObjects(namePattern).FirstOrDefault());
    }
Example #2
0
        public static DTE GetDTE(Process process)
        {
            string namePattern = $@"!VisualStudio\.DTE\.(\d+\.\d+):{process.Id.ToString()}";

            return((DTE)RunningObjectTable.GetRunningObjects(namePattern).FirstOrDefault());
        }
Example #3
0
        internal static object GetDTEObject(Process process)
        {
            string namePattern = $@"!VisualStudio\.DTE\.(\d+\.\d+):{process.Id.ToString()}";

            return(RunningObjectTable.GetRunningObjects(namePattern).FirstOrDefault());
        }