From 03f479dc0eda3f7af50e39671479722a0df276ed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E6=80=9D=E6=B5=B7?= <1464576565@qq.com> Date: Thu, 30 Apr 2026 10:16:33 +0800 Subject: [PATCH] Update Em.cs --- Runtime/UI/Constant/Em.cs | 3 --- 1 file changed, 3 deletions(-) diff --git a/Runtime/UI/Constant/Em.cs b/Runtime/UI/Constant/Em.cs index 086ff4d..7ff5a0e 100644 --- a/Runtime/UI/Constant/Em.cs +++ b/Runtime/UI/Constant/Em.cs @@ -11,19 +11,16 @@ public static class InstanceFactory { if (!_constructorCache.TryGetValue(type, out var constructor)) { - // 楠岃瘉鏄惁瀛樺湪鍏叡鏃犲弬鏋勯€犲嚱鏁? var ctor = type.GetConstructor(Type.EmptyTypes); if (ctor == null) { throw new MissingMethodException(ZString.Format("Type {0} missing public parameterless constructor", type.Name)); } - // 鏋勫缓琛ㄨ揪寮忔爲锛歯ew T() var newExpr = Expression.New(ctor); var lambda = Expression.Lambda>(newExpr); constructor = lambda.Compile(); - // 缂撳瓨濮旀墭 _constructorCache[type] = constructor; }