Author: akpuk | Posted on: 7/31/2009 9:14:40 AM | Views : 424

 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 ...