CSharp · Console
using System;
public class Test
{
private static void Print(string msg)
{
Console.WriteLine(msg);
}
private static void t()
{
string s = null;
try
{
s = s.TrimStart();
}
catch (Exception ex)
{
s = "";
Print(ex.StackTrace);
Print("----------------------------");
throw;
}
}
public static void Main()
{
try
{
t();
}
catch (Exception ex)
{
Print(ex.StackTrace);
}
Print(Environment.Version.ToString());
}
}