Why does this tell me not all code paths return a value? Seems to me it would return false every time it is called.
C#:
//Method to handle no entry by user....
bool Check4NoInput(string dirtystring)
{
if (dirtystring == "" || dirtystring == null)
{
Console.WriteLine("ERROR: No value was entered. Please try again.");
return false;
}
}
Last edited by a moderator: