not all code paths return a value
Posted on 2004-04-08
i got that "not all code paths return a value" message when i just created a method like this:
public Category getCategory(string catid)
since i haven't added any code in it, i don't understand why the complier complained about it. can anyone give me a hint?