public
class
AAClass1 {
staticpublicvoid
main(Args _args) { AAClass1 events =
new
AAClass1(); events.run(); }
publicvoid
run() { System.Exception exception; XppPrePostArgs args =
new
XppPrePostArgs(); Args.setArg(
"string", "This is a test string"
);
setPrefix("Managed Handler Tests"
);
try { this.AADelegate1(this, Args); }
catch
(Exception::CLRError) { exception = CLRInterop::getLastException();
while(exception.get_InnerException() != null
) { exception = exception.get_InnerException(); } error(
strFmt("Runtime CLR error: %1"
, CLRInterop::getAnyTypeForObject(exception.get_Message()))); }
catch { error(
"Runtime error"
);