Skip to content

Conversation

@hazzik
Copy link
Owner

@hazzik hazzik commented Oct 6, 2025

Now it will generate main body of try-catch statement instead of throwing exception

Func<int, int> compiled = x =>
{
    try
    {
        return x * 2;
    }
    catch (ArgumentException)
    {
        return -1;
    }
};

Would be decompiled to Expression<Func<int, int>> dc = x => x * 2.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants