Dong Lam Trien

Dong Lam Trien

  • 830
  • 986
  • 146.5k

How convert the code below form C#2008 to C#2005 dictionary

Mar 24 2015 1:13 AM
I want convert the code below form C#2008 to C#2005 have got Dictionary
[code]
Dictionary<GridCell, CellColors> cellColorsCahe = new Dictionary<GridCell, CellColors>();
void gridView1_RowCellStyle(object sender, DevExpress.XtraGrid.Views.Grid.RowCellStyleEventArgs e)
 {
 foreach (var item in cellColorsCahe)
 {
 if (item.Key.RowHandle == e.RowHandle && item.Key.Column == e.Column)
 {
 e.Appearance.ForeColor = item.Value.ForeColor;
 e.Appearance.BackColor = item.Value.BackColor;
 }
 }
 }
[/code]