Artemis.Utilities.Memory.MemoryHelpers.GetProcessIfRunning C# (CSharp) 메소드

GetProcessIfRunning() 공개 정적인 메소드

public static GetProcessIfRunning ( string processName ) : System.Diagnostics.Process
processName string
리턴 System.Diagnostics.Process
        public static System.Diagnostics.Process GetProcessIfRunning(string processName)
        {
            var processes = System.Diagnostics.Process.GetProcessesByName(processName);
            return processes.Length >= 1 ? processes[0] : null;
        }