Пример #1
0
 /// <summary>
 /// Create an instance of <see cref="TypeBasedOverride"/>
 /// </summary>
 /// <param name="targetType">Type to check for.</param>
 /// <param name="innerOverride">Inner override to check after type matches.</param>
 public TypeBasedOverride(Type targetType, ResolverOverride innerOverride)
 {
     _targetType    = targetType ?? throw new ArgumentNullException(nameof(targetType));
     _innerOverride = innerOverride ?? throw new ArgumentNullException(nameof(innerOverride));
 }
Пример #2
0
 /// <summary>
 /// Create an instance of <see cref="TypeBasedOverride"/>
 /// </summary>
 /// <param name="targetType">Type to check for.</param>
 /// <param name="innerOverride">Inner override to check after type matches.</param>
 public TypeBasedOverride(Type targetType, ResolverOverride innerOverride)
     : base(targetType, null, null)
 {
     _innerOverride = (innerOverride ?? throw new ArgumentNullException(nameof(innerOverride)))
                      .OnType(targetType ?? throw new ArgumentNullException(nameof(targetType)));
 }