Hi,
I have a class that contains a dictionary as follows:
private Dictionary<string, ColumnLayout> _columnLayouts = new Dictionary<string, ColumnLayout>();
public Dictionary<string, ColumnLayout> ColumnLayouts
{
get { return _columnLayouts; }
set { _columnLayouts = value; }
}
In this class I have the following code to add objects to my dictionary:
ColumnLayout _columnLayout = new ColumnLayout();
// code to read XML file
do
{
_columnLayout.Name = result.GetAttribute("Name", "");
_columnLayout.HeaderText = result.GetAttribute("HeaderText", "");
_columnLayout.Visible = Convert.ToBoolean(result.GetAttribute("Visible", ""));
_columnLayout.Width = Convert.ToInt32(result.GetAttribute(&qu ...
Go to the complete details ...