AttributeCollection - LiruJ/GuiCookie GitHub Wiki
An AttributeCollection is capable of taking an XmlNode's attributes and storing them within a Dictionary<string, string> and offering a variety of functions to easily parse this data.
This class has such a large number of functions that all have the same purpose that it would be pointless to list them all here. Many of the get functions take a string for the name of the attribute, a value to be used if the attribute is not found or does not parse, and a delegate used for parsing the string.
The delegate matches the signature of TryParse, for example:
int.TryParse("50", out int result);
attributes.GetAttribute<int>("NumberOfThings", 50, int.TryParse);Get functions exist for many basic data types for convenience.