Please make a new thread for your issue instead of hijacking a two year old one.
The issue will be that you do not return a value in every possible outcome of the method you are in.
For example if an if else statement you must return values in both sections of it
public bool DemoMethod(string Input)
{
if (Input == "Hello")
{
return true;
}
else
{
return false;
}
}
or another common one would be
public bool DemoMethod(string Input)
{
if (Input == "Hello")
{
return true;
}
// Not having a return call here will give the error you see as you do not provide a return path if the code does not enter the if loop
}
Would need to see the full code block to identify the missing line though