mirror of
https://github.com/Theodor-Springmann-Stiftung/hamann-ausgabe-core.git
synced 2025-10-28 08:45:33 +00:00
BUGFIX: mixed upper/lowercase attribute names
This commit is contained in:
@@ -2,20 +2,17 @@
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
using HaXMLReader.Interfaces;
|
||||
namespace HaXMLReader.EvArgs
|
||||
{
|
||||
public class Tag : EventArgs, IReaderEvArg
|
||||
{
|
||||
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
|
||||
{
|
||||
public string this[string key] {
|
||||
get {
|
||||
key = key.ToLower();
|
||||
if (Values != null && Values.ContainsKey(key))
|
||||
return Values[key];
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user