Skip to content

Instantly share code, notes, and snippets.

@tsubakimoto
Created September 24, 2013 14:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tsubakimoto/6685679 to your computer and use it in GitHub Desktop.
Save tsubakimoto/6685679 to your computer and use it in GitHub Desktop.
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