示例#1
0
 public TxtTextReaderStationFactoryDataSource(Func <TextReader> textReaderFactory, IStationParcer <string> parcer)
 {
     _textReaderFactory = textReaderFactory ?? throw new ArgumentNullException(nameof(textReaderFactory));
     _parcer            = parcer ?? throw new ArgumentNullException(nameof(parcer));
 }
 public TxtTextReaderStationDataSource(TextReader textReader, IStationParcer <string> parcer)
 {
     _textReader = textReader ?? throw new ArgumentNullException(nameof(textReader));
     _parcer     = parcer ?? throw new ArgumentNullException(nameof(parcer));
 }