Answers for "c# return in try catch"

C#
0

c# return in try catch

public DataTable ReturnSomething()
{
    DataTable returnValue = null;
    try
    {
        //logic here
        returnValue = ds.Tables[0]; 
    }
    catch (Exception e)
    {
        ErrorString=e.Message;
    }
    return returnValue;
}
Posted by: Guest on July-13-2021

C# Answers by Framework

Browse Popular Code Answers by Language