Remove methods for constructor in ReflectionHelper.

This commit is contained in:
2023-04-08 13:36:52 +08:00
parent 2221658e7a
commit 8907dd19b0
6 changed files with 9 additions and 25 deletions

View File

@@ -13,7 +13,7 @@ namespace Cryville.Common {
public static Binder CreateBinderOfType(Type type) {
var l = type.GetCustomAttributes(typeof(BinderAttribute), true);
if (l.Length > 0) {
return (Binder)ReflectionHelper.InvokeEmptyConstructor(
return (Binder)Activator.CreateInstance(
((BinderAttribute)l[0]).BinderType
);
}