E
Eric
Hello,
I'm trying to write a really simple C# test harness app, can someone
tell me why this doesn't work?
catch (Exception ex) {
string MyException = ex.ToString;
Console.WriteLine(MyException);
}
I get:
Error 10 Cannot convert method group 'ToString' to non-delegate type
'string'. Did you intend to invoke the method?
Thanks,
Eric
I'm trying to write a really simple C# test harness app, can someone
tell me why this doesn't work?
catch (Exception ex) {
string MyException = ex.ToString;
Console.WriteLine(MyException);
}
I get:
Error 10 Cannot convert method group 'ToString' to non-delegate type
'string'. Did you intend to invoke the method?
Thanks,
Eric