Skip to content

Commit

Permalink
fixed the build error introduced by test project .net upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
kerryjiang committed Aug 18, 2024
1 parent 95b5bca commit c046e44
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/SuperSocket.Tests/TestClassBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ protected SuperSocketHostBuilder<TPackageInfo> CreateSocketServerBuilder<TPackag

protected T CreateObject<T>(Type type)
{
return (T)ActivatorUtilities.CreateFactory(type, new Type[0]).Invoke(null, null);
return (T)Activator.CreateInstance(type);
}

protected Socket CreateClient(IHostConfigurator hostConfigurator)
Expand Down

0 comments on commit c046e44

Please sign in to comment.