mirror of
https://github.com/Theodor-Springmann-Stiftung/hamann-ausgabe-core.git
synced 2025-10-29 17:25:32 +00:00
Ported libs fo net V6
This commit is contained in:
26
HaXMLReaderV6/EvArgs/Tag.cs
Normal file
26
HaXMLReaderV6/EvArgs/Tag.cs
Normal file
@@ -0,0 +1,26 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
using HaXMLReader.Interfaces;
|
||||
namespace HaXMLReader.EvArgs
|
||||
{
|
||||
public class Tag : EventArgs, IReaderEvArg
|
||||
{
|
||||
public string Name { get; set; } = "";
|
||||
public Dictionary<string, string> Values { get; set; } = new Dictionary<string, string>();
|
||||
public bool IsEmpty { get; set; } = false;
|
||||
public bool EndTag { get; set; } = false;
|
||||
|
||||
// Privides safe access to the values Dict
|
||||
public string this[string key]
|
||||
{
|
||||
get
|
||||
{
|
||||
if (Values != null && Values.ContainsKey(key))
|
||||
return Values[key];
|
||||
else
|
||||
return "";
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
12
HaXMLReaderV6/EvArgs/Text.cs
Normal file
12
HaXMLReaderV6/EvArgs/Text.cs
Normal file
@@ -0,0 +1,12 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
using HaXMLReader.Interfaces;
|
||||
|
||||
namespace HaXMLReader.EvArgs
|
||||
{
|
||||
public class Text : EventArgs, IReaderEvArg
|
||||
{
|
||||
public string Value { get; set; } = "";
|
||||
}
|
||||
}
|
||||
8
HaXMLReaderV6/EvArgs/Whitespace.cs
Normal file
8
HaXMLReaderV6/EvArgs/Whitespace.cs
Normal file
@@ -0,0 +1,8 @@
|
||||
using HaXMLReader.Interfaces;
|
||||
|
||||
namespace HaXMLReader.EvArgs {
|
||||
public class Whitespace : System.EventArgs, IReaderEvArg {
|
||||
public string Value { get; set; }
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user