Tuesday, 1 October 2019

C# Concept of Multiple Exception

C# Concept of Multiple Exception
using System;
namespace ConsoleApplicationSample
{
    class ArrayBCA
    {
#region Multiple Exception
        public static void Main()
        {
            int x = 0;
            int div = 0;
            try
            {
                div = 100 / x;
                Console.WriteLine("Not executed line");
            }
            catch (DivideByZeroException de)
            {
                Console.WriteLine("DivideByZeroException" + de.Message);
            }
            catch (Exception ex)
            {
                Console.WriteLine("Exception" + ex.Message);
            }
            finally
            {
                Console.WriteLine("Finally Block");
            }
            Console.WriteLine("Result is {div}");
            Console.ReadLine();
        }
        #endregion
       }       
    }
}
https://www.youtube.com/channel/UCKLRUr6U5OFeu7FLOpQ-FSw/videos

1 comments:

  1. Slot machines are additionally identified pejoratively as one-armed bandits because of the big mechanical levers affixed 코인카지노 to the edges of early mechanical machines. "Too-big wins have been proven to cease play because of|as a result of} it’s such an intense shift in the state of affairs that you’ll kind of pause, you’ll cease, you’ll take your money and depart," says Schüll. Stretching out gameplay with minor rewards, Schüll says, "allows you to get in the circulate of, one other little win, one other little win."

    ReplyDelete