Beispiel #1
0
 /// <summary>
 /// Creates a new instance of <see cref="AttributeMapperStrategy"/> with the specified <paramref name="annotatedPropertyValidator"/> and <paramref name="typeParser"/>.
 /// </summary>
 /// <param name="annotatedPropertyValidator">An instance of <see cref="IAnnotatedPropertyValidator"/>.</param>
 /// <param name="typeParser">An instance of <see cref="ITypeParser"/>.</param>
 public AttributeMapperStrategy([NotNull] IAnnotatedPropertyValidator annotatedPropertyValidator, [NotNull] ITypeParser typeParser)
 {
     _typeParser = typeParser ?? throw new ArgumentNullException(nameof(typeParser));
     _annotatedPropertyValidator = annotatedPropertyValidator ?? throw new ArgumentNullException(nameof(annotatedPropertyValidator));
 }
Beispiel #2
0
 /// <summary>
 /// Creates a new instance of <see cref="NoExceptionAttributeMapperStrategy"/> with the specified <paramref name="annotatedPropertyValidator"/> and <paramref name="typeParser"/>.
 /// </summary>
 /// <param name="annotatedPropertyValidator">An instance of <see cref="IAnnotatedPropertyValidator"/>.</param>
 /// <param name="typeParser">An instance of <see cref="ITypeParser"/>.</param>
 public NoExceptionAttributeMapperStrategy([NotNull] IAnnotatedPropertyValidator annotatedPropertyValidator, [NotNull] ITypeParser typeParser)
     : base(annotatedPropertyValidator, typeParser)
 {
 }