feat: TypeFactory typeName Method
This commit is contained in:
parent
7e48eb8f12
commit
2f6fecdd78
|
@ -16,6 +16,9 @@ public static class TypeFactory
|
|||
throw new Exception();
|
||||
}
|
||||
|
||||
public static T Get<T>(string typeName, params object?[]? args) where T : class
|
||||
=> Get<T>(Get(typeName), args);
|
||||
|
||||
public static T Get<T>(Type type, params object?[]? args) where T : class
|
||||
{
|
||||
T? result;
|
||||
|
|
Loading…
Reference in New Issue