private void button16_Click(object sender, EventArgs e) { dynamic tc = Functions.trycatch( () => { return("Erfolgreich"); throw new Exception("gjfhntjn"); }); MessageBox.Show(tc.hasException ? tc.Exception : tc.Result); }