public DelimitedRecordSource(DelimitedRecordDescriptor descriptor, String filePath) { this.descriptor = descriptor; this.file = new FileReader(filePath); this.positions = new List<Int64>(); this.recordPosition = this.file.Position; this.ReadRecord(); }
protected virtual void Dispose(Boolean disposing) { if (this.disposed) { return; } if (disposing) { if (this.file != null) { this.file.Close(); this.file = null; } } this.disposed = true; }