Following is my code,where I need to continue the loop in case of exception inside try block.
for (int i = 0; i < doc.Length; i++)
{
name = doc[i].ToString();
try
{
if (name != "")
{
name=name.ToString().Substring(12);
break;
}
}
catch{
continue;
}
}
Please tell me if i`m wrong at any place in my code.Please check for performance wise too.
Thanks in advance.
1 Answer