diff --git a/HaXMLReaderV6/EvArgs/Tag.cs b/HaXMLReaderV6/EvArgs/Tag.cs index 3b02dc2..cf4565c 100644 --- a/HaXMLReaderV6/EvArgs/Tag.cs +++ b/HaXMLReaderV6/EvArgs/Tag.cs @@ -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 Values { get; set; } = new Dictionary(); 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