Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ GetChildProcesses()

IReadOnlyList< Process > System.Diagnostics.Process.GetChildProcesses ( Process[] processes = null)
inlineprivate

Definition at line 2417 of file Process.cs.

2418 {
2419 bool flag = processes == null;
2422 Process[] array = processes;
2423 foreach (Process process in array)
2424 {
2425 bool flag2 = flag;
2426 try
2427 {
2428 if (IsParentOf(process))
2429 {
2430 list.Add(process);
2431 flag2 = false;
2432 }
2433 }
2434 finally
2435 {
2436 if (flag2)
2437 {
2438 process.Dispose();
2439 }
2440 }
2441 }
2442 return list;
2443 }
bool IsParentOf(Process possibleChild)
Definition Process.cs:2260
static Process[] GetProcesses()
Definition Process.cs:1089

References System.Collections.Generic.Dictionary< TKey, TValue >.Add(), System.array, System.Runtime.Serialization.Dictionary, System.Diagnostics.Process.GetProcesses(), System.Diagnostics.Process.IsParentOf(), and System.list.

Referenced by System.Diagnostics.Process.IsSelfOrDescendantOf().