Class ZipCodeValidator
Validator that validates that a string property is a valid zip code.
Inheritance
System.Object
ZipCodeValidator
Namespace: JK.Common.FluentValidation.Validators
Assembly: JK.Common.FluentValidation.dll
Syntax
public class ZipCodeValidator : PropertyValidator
Constructors
| Improve this Doc View SourceZipCodeValidator()
Initializes a new instance of the ZipCodeValidator class.
Declaration
public ZipCodeValidator()
Methods
| Improve this Doc View SourceIsValid(PropertyValidatorContext)
Declaration
protected override bool IsValid(PropertyValidatorContext context)
Parameters
Type | Name | Description |
---|---|---|
PropertyValidatorContext | context |
Returns
Type | Description |
---|---|
System.Boolean |