public ProcessInfo PassMeDataofThisPid(int processid) { if (_processList.ContainsKey(processid)) return _processList[processid]; else { //Adding new Key to Db var requestedData = new ProcessInfo(processid); _processList.Add(processid, requestedData); return requestedData; } }
public void AddKey(ProcessInfo processName, int processid) { _processList.Add(processid, processName); }