Skip to content

Commit 0a4159d

Browse files
committed
[修改] 参数检查的函数被释放的问题
1 parent 443e6ba commit 0a4159d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

GameFrameX.Core/Hotfix/HotfixManager.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,8 @@ public static Assembly HotfixAssembly
6464
/// <returns>返回是否加载成功</returns>
6565
public static async Task<bool> LoadHotfixModule(AppSetting setting, string dllVersion = "", string dllPath = "hotfix", string hotfixDllName = "GameFrameX.Hotfix.dll")
6666
{
67-
dllPath.CheckNotNullOrEmptyOrWhiteSpace(nameof(dllPath));
68-
hotfixDllName.CheckNotNullOrEmptyOrWhiteSpace(nameof(hotfixDllName));
67+
ArgumentException.ThrowIfNullOrEmpty(dllPath, nameof(dllPath));
68+
ArgumentException.ThrowIfNullOrEmpty(hotfixDllName, nameof(hotfixDllName));
6969
if (setting != null)
7070
{
7171
_baseSetting = setting;

0 commit comments

Comments
 (0)