从旧版中移植,Prefab未确认

This commit is contained in:
2025-07-24 15:41:28 +08:00
parent 86842492ea
commit 43b824b722
300 changed files with 101926 additions and 14 deletions

View File

@@ -2104,3 +2104,18 @@ namespace Convention
}
}
}
namespace Convention
{
public static partial class ConventionUtility
{
public static object GetDefault([In] Type type)
{
if (type.IsClass)
return null;
else
return Activator.CreateInstance(type);
}
}
}