MainForm.OnUnhandledException C# (CSharp) Метод

OnUnhandledException() статический приватный Метод

static private OnUnhandledException ( object sender, UnhandledExceptionEventArgs e ) : void
sender object
e UnhandledExceptionEventArgs
Результат void
	static void OnUnhandledException (object sender, UnhandledExceptionEventArgs e)
	{
		if (e.ExceptionObject != null)
			_events.Add ("UnhandledException:" + e.ExceptionObject + " | " + e.IsTerminating);
		else
			_events.Add ("UnhandledException");

		using (StreamWriter sw = new StreamWriter (_exceptionFile, false, Encoding.UTF8)) {
			sw.Write (e.ExceptionObject.ToString ());
		}
	}
}
MainForm