What is wrong with this c# method?
- by bala3569
I use this method to get file extension,
public string ReturnExtension(string fileExtension)
{
switch (fileExtension)
{
case ".doc":
case ".docx":
return "application/ms-word";
}
}
When i compile it i got the error BaseClass.ReturnExtension(string)': not all code paths return a value.. Any suggestion...