How this is
int[] songsLength=new int[songsCount];
for(int k=0;k<songsCount;k++)
{
songsLength[k]=int.Parse(songsLengthInString[k]);
}
is different from this
int[] songsLength = Array.ConvertAll(songsLengthInString, s => int.Parse(s));
When 2nd method is used, it does not execute successfully. Where as my local visual studio executes without any issue.