public static ChoKVPReader <T> LoadText(string inputText, Encoding encoding = null, ChoKVPRecordConfiguration configuration = null) { var r = new ChoKVPReader <T>(inputText.ToStream(encoding), configuration); r._closeStreamOnDispose = true; return(r); }
public static ChoKVPReader <T> LoadText(string inputText, Encoding encoding = null, ChoKVPRecordConfiguration configuration = null, TraceSwitch traceSwitch = null) { var r = new ChoKVPReader <T>(inputText.ToStream(encoding), configuration) { TraceSwitch = traceSwitch == null ? ChoETLFramework.TraceSwitch : traceSwitch }; r._closeStreamOnDispose = true; return(r); }
public static ChoKVPReader <T> LoadLines(IEnumerable <string> inputLines, ChoKVPRecordConfiguration configuration = null, TraceSwitch traceSwitch = null) { var r = new ChoKVPReader <T>(inputLines, configuration) { TraceSwitch = traceSwitch == null ? ChoETLFramework.TraceSwitch : traceSwitch }; r._closeStreamOnDispose = true; return(r); }