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