Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
using System;
namespace ConsoleApplication1
{
class Program
{
static void Main(string[] args)
{
try
{
Method1();
}
catch (Exception ex)
{
Console.WriteLine(ex.StackTrace);
}
finally
{
Console.ReadLine();
}
}
static void Method1()
{
try
{
Method2();
}
catch (Exception ex)
{
throw;
//throw ex;
}
}
static void Method2()
{
throw new NotImplementedException();
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment