Dave

Dave

  • NA
  • 48
  • 23.5k

Created an array several times in a loop!

Jan 8 2014 3:38 PM
Hi,
Very strange, this code works:
  for (int i = 0; i < nItems; i++)
  {
  string[] parts = items[i].Split('\t');
  ......
  }
It looks the same string array "parts" is created nItems times but without any error, or C# clever enough to created only onece?

Answers (5)