The following is for a windows application. If I was to cause a button click to throw an exception i.e.
private void button6_Click(object sender, System.EventArgs e)
{
//simulate a crash by throwing an exception
throw new Exception ("Simulated Crash");
}
where would I catch this other than in...
Newbie C# programmer here.
I have a base class A which has a method for id. Now I have class B which inheirits from B and has a method for expiry date. Finally I have class C which inheirits from B and has a method for printing names.
If I were to instantiate each one of these types of...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.