fix: Fixes PlayerVendor customizations not working due to constructor issues (#1451)

This commit is contained in:
mdodkins 2023-08-11 03:24:45 +01:00 committed by GitHub
parent 8389bfacfe
commit 23c729f31b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 25 additions and 12 deletions

View file

@ -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,