public TranslationSetParser(ISingleLineParser <Translation> translationParser, ISingleLineParser <LinkedData> linkedDataParser) { if (translationParser == null) { throw new ArgumentNullException(nameof(translationParser)); } if (linkedDataParser == null) { throw new ArgumentNullException(nameof(linkedDataParser)); } this.translationParser = translationParser; this.linkedDataParser = linkedDataParser; }
public LangFileParser( ISingleLineParser <StopWords> stopWordsParser, ISingleLineParser <Synonym> synonymsParser, IMultilineParser <TranslationSet> translationSetParser) { if (stopWordsParser == null) { throw new ArgumentNullException(nameof(stopWordsParser)); } if (synonymsParser == null) { throw new ArgumentNullException(nameof(synonymsParser)); } if (translationSetParser == null) { throw new ArgumentNullException(nameof(translationSetParser)); } this.stopWordsParser = stopWordsParser; this.synonymsParser = synonymsParser; this.translationSetParser = translationSetParser; }
public LangFileParser( ISingleLineParser<StopWords> stopWordsParser, ISingleLineParser<Synonym> synonymsParser, IMultilineParser<TranslationSet> translationSetParser) { if (stopWordsParser == null) { throw new ArgumentNullException(nameof(stopWordsParser)); } if (synonymsParser == null) { throw new ArgumentNullException(nameof(synonymsParser)); } if (translationSetParser == null) { throw new ArgumentNullException(nameof(translationSetParser)); } this.stopWordsParser = stopWordsParser; this.synonymsParser = synonymsParser; this.translationSetParser = translationSetParser; }