-
-
Notifications
You must be signed in to change notification settings - Fork 272
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 Guard #77
Comments
This is nice. Any reason you want to limit this only for "struct"? |
Be aware that this can lead to performance issues if abused. |
Let's implement this and see if there are any issues. |
If someone wants to deal with string properties with custom validations, this will not allow. Otherwise, I've added the required tests. Let me know. @ardalis |
@ardalis do you still want this to be implemented? if so, i'd love to have a go at this :) |
yes, if someone wants to implement support for it, I'd look at the PR. Just reference this issue number in the description. Thanks, @wgnf |
Just scrolling through code to see how things are done i stumbled upon this one:
|
The only thing that is different here is that you mention a Or is that the new feature you wanted to implement and I just didn't get the hint? :D @ardalis |
Hmm... yeah, that's fair. I think maybe I missed it due to its naming. Ok, let's just say this is done, then. 😃 |
An Expression-based Guard could be used to provide flexibility and could cover any case not already taken care of by the library, without the need to write your own guard clause method.
The text was updated successfully, but these errors were encountered: