private static int SafeGetCurrentProcessId() { try { return(EnvironmentInfo.GetCurrentProcessId != null?EnvironmentInfo.GetCurrentProcessId() : 0); } catch { return(0); } }
private static int SafeGetCurrentProcessId() { try { return(EnvironmentInfo.GetCurrentProcessId != null?EnvironmentInfo.GetCurrentProcessId() : 0); } catch { return(0); } }