📅  最后修改于: 2022-03-11 14:48:40.093000             🧑  作者: Mango
try
{
// do something here
}
catch(Exception ex)
{
// will print System.NullReferenceException for example
Console.WriteLine(ex.GetType().ToString());
}