This commit is contained in:
CortexCore 2024-06-21 10:52:32 +08:00
parent 0423dc7c48
commit f24513dd5a
1 changed files with 5 additions and 0 deletions

View File

@ -92,6 +92,11 @@ namespace BITKit
var type = BITSharp.GetTypeFromFullName(typeName);
if (type is null)
{
throw new Exception($"反序列化时未找到类型:{typeName}");
}
var instance = System.Activator.CreateInstance(type);
if (instance is IBinarySerialize serialize)