public override string ToString() { return(ProcessName + "|" + PID.ToString() + "|" + UserName + "|" + CPUTime + "|" + NumBytes.ToString() + "|" + HandleCount.ToString() + "|" + ThreadCount.ToString() + "|" + CommandLineArgs); }
public string[] ToStringArray() { return(new string[] { ProcessShortName, PID.ToString(), UserName, CPUTime, new FileSystemHelper(null).BytesToReadableValue(NumBytes), HandleCount.ToString(), ThreadCount.ToString(), ProcessName + " " + CommandLineArgs }); }
public string[] ForProcessAdvList() { return(new string[] { ProcessName, PID.ToString(), StartTime.ToShortTimeString(), TotalProcessorTime.Duration().Hours.ToString() + ":" + TotalProcessorTime.Duration().Minutes.ToString() + ":" + TotalProcessorTime.Duration().Seconds.ToString() + "." + TotalProcessorTime.Duration().Milliseconds.ToString() , (WorkingSet64 / 1024) + " K", (PeakWorkingSet64 / 1024) + " K", HandleCount.ToString(), ThreadCount.ToString(), status, user, FileDescription }); }