Beispiel #1
0
		private static int Main(string[] args)
		{
			try
			{
				return LibZResolver.Startup(() => {
					var program = new LibZ.Tool.Program();
					return program.Run(args);
				});
			}
			catch (Exception e)
			{
				Console.WriteLine("Fatal initialization error");
				Console.WriteLine("{0}: {1}", e.GetType().Name, e.Message);
				Console.WriteLine(e.StackTrace);
				Console.ReadLine();
				return -1;
			}
		}
Beispiel #2
0
 private static int Main(string[] args)
 {
     try
     {
         return(LibZResolver.Startup(() => {
             var program = new LibZ.Tool.Program();
             return program.Run(args);
         }));
     }
     catch (Exception e)
     {
         Console.WriteLine("Fatal initialization error");
         Console.WriteLine("{0}: {1}", e.GetType().Name, e.Message);
         Console.WriteLine(e.StackTrace);
         Console.ReadLine();
         return(-1);
     }
 }