/// <inheritdoc />
 public Expression?ResolveConstructorExpression(Type type, ConstructorInfo?constructorInfo)
 {
     return(ResolveConstructorExpressionCache.GetOrAdd(type, t => _constructorResolver.ResolveConstructorExpression(t, constructorInfo)));
 }
예제 #2
0
 public static Expression?ResolveConstructorExpression(this IConstructorResolver resolver, Type type)
 {
     return(resolver.ResolveConstructorExpression(type, resolver.StaticSelectConstructor(type)));
 }