Quantcast
Channel: Fluent Validation for .NET
Viewing all articles
Browse latest Browse all 1917

New Post: Custom Validator With Arguments

$
0
0
Hi, I want to implement a validator which would check if the property value is within a certain collection (list, params, array, etc.).

It's a simple validator and I realize that I can use 'Must' to achieve this, but can this be done using a custom [Property] validator? I think the main blocker for me is that I don't know how to include arguments in the custom validator.

Thanks!

Viewing all articles
Browse latest Browse all 1917

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>