/// <summary> /// Initializes a new instance of the <see cref="FluentParserMap"/> class. /// </summary> /// <param name="parserContext">An implementation of the <see cref="IParserContext"/> interface.</param> /// <param name="fluentParser">An implementation of the <see cref="IFluentParser"/> interface.</param> /// <exception cref="ArgumentNullException">The value of '<paramref name="parserContext"/>' and '<paramref name="fluentParser"/>' cannot be null. </exception> public FluentParserMap([NotNull] IParserContext parserContext, [NotNull] FluentParser fluentParser) { if (parserContext == null) { throw new ArgumentNullException(nameof(parserContext)); } if (fluentParser == null) { throw new ArgumentNullException(nameof(fluentParser)); } this.parserContext = parserContext; this.fluentParser = fluentParser; }