public static ChoXmlReader <T> LoadXElements(IEnumerable <XElement> xElements, ChoXmlRecordConfiguration configuration = null) { var r = new ChoXmlReader <T>(xElements, configuration); r._closeStreamOnDispose = true; return(r); }
public static ChoXmlReader <T> LoadText(string inputText, Encoding encoding = null, ChoXmlRecordConfiguration configuration = null, TraceSwitch traceSwitch = null) { var r = new ChoXmlReader <T>(inputText.ToStream(encoding), configuration) { TraceSwitch = traceSwitch == null ? ChoETLFramework.TraceSwitch : traceSwitch }; return(r); }
public static ChoXmlReader <T> LoadText(string inputText, Encoding encoding = null, ChoXmlRecordConfiguration configuration = null) { var r = new ChoXmlReader <T>(inputText.ToStream(encoding), configuration); return(r); }