internal void LoadEnums(XElement item)
        {
            var enums = new ConfigurationEnumValueCollection();

            foreach (var node in item.Nodes())
            {
                var element = node as XElement;
                if (element == null)
                {
                    continue;
                }

                enums.Add(new ConfigurationEnumValue {
                    Name = element.Attribute("name").Value, Value = long.Parse(element.Attribute("value").Value)
                });
            }

            SetEnumValues(enums);
        }
 public ConfigurationEnumValueCollection GetEnumValues()
 {
     return(_collection ?? (_collection = new ConfigurationEnumValueCollection()));
 }
 internal void SetEnumValues(ConfigurationEnumValueCollection enums)
 {
     _collection = enums;
 }