mirror of
https://github.com/Theodor-Springmann-Stiftung/hamann-ausgabe-core.git
synced 2025-10-28 16:55:32 +00:00
BUGFIX: mixed upper/lowercase attribute names
This commit is contained in:
@@ -2,20 +2,17 @@
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
using HaXMLReader.Interfaces;
|
using HaXMLReader.Interfaces;
|
||||||
namespace HaXMLReader.EvArgs
|
namespace HaXMLReader.EvArgs {
|
||||||
{
|
public class Tag : EventArgs, IReaderEvArg {
|
||||||
public class Tag : EventArgs, IReaderEvArg
|
|
||||||
{
|
|
||||||
public string Name { get; set; } = "";
|
public string Name { get; set; } = "";
|
||||||
public Dictionary<string, string> Values { get; set; } = new Dictionary<string, string>();
|
public Dictionary<string, string> Values { get; set; } = new Dictionary<string, string>();
|
||||||
public bool IsEmpty { get; set; } = false;
|
public bool IsEmpty { get; set; } = false;
|
||||||
public bool EndTag { get; set; } = false;
|
public bool EndTag { get; set; } = false;
|
||||||
|
|
||||||
// Privides safe access to the values Dict
|
// Privides safe access to the values Dict
|
||||||
public string this[string key]
|
public string this[string key] {
|
||||||
{
|
get {
|
||||||
get
|
key = key.ToLower();
|
||||||
{
|
|
||||||
if (Values != null && Values.ContainsKey(key))
|
if (Values != null && Values.ContainsKey(key))
|
||||||
return Values[key];
|
return Values[key];
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user