How can I use try/catch/finally to make sure that the function will return value?
I’m reading cells from an Excel sheet. Sometimes the parsing operation is not always working. I need to return 0, if, for whichever reason the operation fails.
try
{
//1. read cell value from excel file
//2. get the value, convert it as string, and
//3. return it
}
catch {}
finally {}
Thanks for helping
You don’t need
finally.