Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expression tree should support optional parameters #28481

Open
informatorius opened this issue Jul 12, 2018 · 1 comment
Open

Expression tree should support optional parameters #28481

informatorius opened this issue Jul 12, 2018 · 1 comment

Comments

@informatorius
Copy link

informatorius commented Jul 12, 2018

I wish expression tree compiler could support invocation with optional parameters.

To get rid of the error message CS0854: "An expression tree may not contain a call or invocation that uses optional arguments"

@gafter gafter added this to the Backlog milestone Jul 24, 2019
@garcipat
Copy link

garcipat commented May 4, 2023

I would highly support this. Especially for CancellationTokens in async methods it would be nice when mocking not requireing to provide It.IsAny() everywhere when using Moq

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

No branches or pull requests

4 participants