Habanero.BO.Loaders.XmlUIGridColumnLoader.LoadParameters C# (CSharp) Method

LoadParameters() private method

Loads the attributes from the reader. This method is called by LoadFromReader().
private LoadParameters ( ) : void
return void
        private void LoadParameters()
        {
            _propertyAttributes = new Hashtable();
            _reader.Read();

            while (_reader.Name == "parameter")
            {
                string attName = _reader.GetAttribute("name");
                string attValue = _reader.GetAttribute("value");
                if (string.IsNullOrEmpty(attName) ||
                    string.IsNullOrEmpty(attValue))
                {
                    throw new InvalidXmlDefinitionException("In a " +
                        "'parameter' element, either the 'name' or " +
                        "'value' attribute has been omitted.");
                }

                try
                {
                    _propertyAttributes.Add(attName, attValue);
                }
                catch (Exception ex)
                {
                    throw new InvalidXmlDefinitionException("An error occurred " +
                        "while loading a 'parameter' element.  There may " +
                        "be duplicates with the same 'name' attribute.", ex);
                }
                ReadAndIgnoreEndTag();
            }
        }
    }