Пример #1
0
		/// <summary>
		/// Initializes a new instance using the given reader.
		/// </summary>
		/// <param name="reader"></param>
		public RecordManager(CsvReader reader)
		{
			this.reader = reader;
			var resolver = ObjectResolver.Current;
			recordCreatorFactory = resolver.Resolve<RecordCreatorFactory>(reader);
			recordHydrator = resolver.Resolve<RecordHydrator>(reader);
		}
Пример #2
0
 /// <summary>
 /// Initializes a new instance using the given reader.
 /// </summary>
 /// <param name="reader"></param>
 public RecordManager(CsvReader reader)
 {
     this.reader          = reader;
     recordCreatorFactory = new RecordCreatorFactory(reader);
     recordHydrator       = new RecordHydrator(reader);
 }