Dong Lam Trien

Dong Lam Trien

  • 828
  • 986
  • 147.7k

Convert Dictionary Net 4.0 to Net 2.0 ?

Jan 22 2017 1:47 AM
I want convert Dictionary Net 4.0 to Net 2.0.
[CODE]
Dictionary<string, Action<IWin32Window>> ItemHandlers = new Dictionary<string, Action<IWin32Window>>() {
{ "A", o => MessageBox.Show(o, "The command A is executed", "Dx Sample", MessageBoxButtons.OK, MessageBoxIcon.Information) },
{ "B", o => MessageBox.Show(o, "The command B is executed", "Dx Sample", MessageBoxButtons.OK, MessageBoxIcon.Information) }
};
[/CODE]

Answers (2)