Child pages
  • Co-variant array conversion may cause exception on write operation

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
csharp
csharp
class MyForm : Form
{
  ProcessFiles()
  {
    var ofd = new OpenFileDialog();
    var names = ofd.ShowDialog();
    BeginInvoke(new Action<string[]>(Process), ofd.FileNames);
  }

    private void Process(string[] files)
  {
    // process each of the files
  }
}

...