How do I resolve this error?
I want to customize a method in the newly created cs file, as follows:
bool blnConnectAccess (string strAccountPath)
{
if (strAccountPath! = "")
{
if (System.IO.File.Exists (strAccountPath))
{
}
else
{
}
}
}
The result is that prompt, somehow why? How to solve it?
Not all code paths return a value
This shows that there may be no return value in your branch, and your return value is not void, you have to return something to him. From your code above, there is nothing