[]
        
(Showing Draft Content)

GrapeCity.ActiveReports.Rendering.Tools.ValidatorBase-1.RuleFor

RuleFor Method

RuleFor<TProperty>(Func<T, TProperty>)

Add property to verification

Declaration
protected ValidatorBase<T>.Validator<TProperty> RuleFor<TProperty>(Func<T, TProperty> getProperty)
Parameters
Type Name Description
Func<T, TProperty> getProperty

A delegate that returns a property from T object

Returns
Type Description
ValidatorBase<T>.Validator<TProperty>

A ValidatorBase<T>.Validator<TProperty> object

Type Parameters
Name Description
TProperty