fix: Fixes PlayerVendor customizations not working due to constructor issues (#1451)
This commit is contained in:
parent
8389bfacfe
commit
23c729f31b
3 changed files with 25 additions and 12 deletions
|
|
@ -26,6 +26,13 @@ public static class ActivatorExtensions
|
|||
Type[] args = null
|
||||
) => type.GetConstructor(predicate, args, out _);
|
||||
|
||||
public static ConstructorInfo GetConstructor(
|
||||
this Type type,
|
||||
out int paramCount,
|
||||
Predicate<ConstructorInfo> predicate = null,
|
||||
Type[] args = null
|
||||
) => type.GetConstructor(predicate, args, out paramCount);
|
||||
|
||||
public static ConstructorInfo GetConstructor(
|
||||
this Type type,
|
||||
Predicate<ConstructorInfo> predicate,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue