如何在 C# 中重构 tryparse 的代码

How to refactor the code for tryparse in c#

如何通过删除 bool 变量来重构此代码段?

    bool value = int.TryParse(configHelper.GetConfigValue("timeout"), out time );
    time = value ? time : 70000;

感谢任何帮助。 谢谢

time = int.TryParse(configHelper.GetConfigValue("timeout"), out var mgdtimeout) ? mgdtimeout : 70000;