Example #1
0
 /// <summary>
 ///     Gets a value indicating whether the specified <paramref name="parameters"/> can be
 ///     resolved using the specified <paramref name="register"/>.
 /// </summary>
 /// <param name="register">the register to use</param>
 /// <param name="parameters">the service implementation type constructor parameters</param>
 /// <returns>
 ///     a value indicating whether the specified <paramref name="parameters"/> can be
 ///     resolved using the specified <paramref name="register"/>
 /// </returns>
 public static bool CanUseConstructor(IServiceRegister register, IEnumerable <ParameterInfo> parameters)
 => parameters.All(s => register.FindRegistration(s.ParameterType) != null);