Answers for "c# try and catch"

C#
2

c# try and catch

try
        {
            ProcessString(s);
        }
        catch (Exception e)
        {
            Console.WriteLine("{0} Exception caught.", e);
        }
    }
}
/*
Output:
System.ArgumentNullException: Value cannot be null.
   at TryFinallyTest.Main() Exception caught.
 * */
Posted by: Guest on October-14-2020

C# Answers by Framework

Browse Popular Code Answers by Language