mirror of
https://github.com/Theodor-Springmann-Stiftung/hamann-ausgabe-core.git
synced 2025-10-30 01:35:32 +00:00
Moved unused code into Achive
This commit is contained in:
37
Archive/HaXMLReader/XElementReader.cs
Normal file
37
Archive/HaXMLReader/XElementReader.cs
Normal file
@@ -0,0 +1,37 @@
|
||||
using System;
|
||||
using System.Linq;
|
||||
using System.IO;
|
||||
using System.Xml;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using HaXMLReader.Interfaces;
|
||||
using System.Xml.Linq;
|
||||
|
||||
namespace HaXMLReader
|
||||
{
|
||||
public class XElementReader : Reader, IReader
|
||||
{
|
||||
private readonly XElement _element;
|
||||
|
||||
public XElementReader(XElement element)
|
||||
{
|
||||
_element = element;
|
||||
CreateReader();
|
||||
}
|
||||
|
||||
public XElementReader(XElement element, Action<string[]> Logsink) : this(element)
|
||||
{
|
||||
_LogSink = Logsink;
|
||||
}
|
||||
|
||||
public override void Dispose()
|
||||
{
|
||||
base.Dispose();
|
||||
}
|
||||
|
||||
protected override XmlReader GetReader() {
|
||||
return _element.CreateReader();
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user