N
Niall
I was compiling the function below and received this error. Putting a return
statement after the loop solves the problem I believe this is a compiler
bug, as this code will always leave the function within the loop.
protected DateTime GetDate()
{
for (int i = 0; i < 3; i++)
{
try
{
return DateTime.Now;
}
catch
{
throw;
}
}
}
Niall
statement after the loop solves the problem I believe this is a compiler
bug, as this code will always leave the function within the loop.
protected DateTime GetDate()
{
for (int i = 0; i < 3; i++)
{
try
{
return DateTime.Now;
}
catch
{
throw;
}
}
}
Niall