Beispiel #1
0
        public static ChoXmlReader <T> LoadXElements(IEnumerable <XElement> xElements, ChoXmlRecordConfiguration configuration = null)
        {
            var r = new ChoXmlReader <T>(xElements, configuration);

            r._closeStreamOnDispose = true;

            return(r);
        }
Beispiel #2
0
        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);
        }
Beispiel #3
0
        public static ChoXmlReader <T> LoadText(string inputText, Encoding encoding = null, ChoXmlRecordConfiguration configuration = null)
        {
            var r = new ChoXmlReader <T>(inputText.ToStream(encoding), configuration);

            return(r);
        }