Ported libs fo net V6

This commit is contained in:
schnulller
2022-05-17 01:21:10 +02:00
parent cb23a75761
commit 2ffd46cd62
79 changed files with 225299 additions and 124 deletions

View 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 "";
}
}
}
}

View 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; } = "";
}
}

View File

@@ -0,0 +1,8 @@
using HaXMLReader.Interfaces;
namespace HaXMLReader.EvArgs {
public class Whitespace : System.EventArgs, IReaderEvArg {
public string Value { get; set; }
}
}