private Process ParentProcess( Process child ) { var parent = from proc in allProcesses where proc.process.Contains(child) select proc; return parent.FirstOrDefault(); }
private IEnumerable<Process> ChildProcesses( Process parent ) { return parent.process.Traverse(c => c.process); }