private void HandleLineEndings() { if (Configuration.RowEnding != Cesil.RowEndings.Detect) { RowEndings = Configuration.RowEnding; TryMakeStateMachine(); return; } using (var detector = new RowEndingDetector <T>(Configuration, SharedCharacterLookup, Inner)) { var res = detector.Detect(); HandleLineEndingsDetectionResult(res); } }
private void HandleLineEndings() { var options = Configuration.Options; if (options.ReadRowEnding != ReadRowEnding.Detect) { RowEndings = options.ReadRowEnding; TryMakeStateMachine(); return; } using (var detector = new RowEndingDetector(StateMachine, options, Configuration.MemoryPool, SharedCharacterLookup, Inner, Configuration.ValueSeparatorMemory)) { var res = detector.Detect(); HandleLineEndingsDetectionResult(res); } }