using System; using System.Collections.Generic; using System.Text; namespace Vestris.VMWareLib { /// /// A collection of vmware processes, organized by process id. /// public class VMWareProcessCollection : Dictionary { /// /// Find a process by name. /// /// The name of the process. /// The type of string comparison. /// public VMWareVirtualMachine.Process FindProcess(string processName, StringComparison comparisonType) { foreach (KeyValuePair process in this) { if (string.Compare(process.Value.Name, processName, comparisonType) == 0) { return process.Value; } } return null; } } }