Tuesday, 3 September 2013

c# anonymous method in a if statement?

c# anonymous method in a if statement?

In c#, can I write something like this :
if (
(
try {
...
return true;
}
catch (Exception ex)
{
return false;
}
) == true
)
{
...
}
without having to move all my try/catch block inside a new function

No comments:

Post a Comment