Exemplo n.º 1
0
 public static VisualStudioProxy FromProcessId(int processId) {
     VisualStudioProxy inst;
     lock (_knownInstances) {
         if (!_knownInstances.TryGetValue(processId, out inst)) {
             _knownInstances[processId] = inst = new VisualStudioProxy(processId);
         }
     }
     return inst;
 }
Exemplo n.º 2
0
        public static VisualStudioProxy FromProcessId(int processId)
        {
            VisualStudioProxy inst;

            lock (_knownInstances) {
                if (!_knownInstances.TryGetValue(processId, out inst))
                {
                    _knownInstances[processId] = inst = new VisualStudioProxy(processId);
                }
            }
            return(inst);
        }