C# Class FluentMetadata.Rules.RangeRule

Inheritance: Rule
显示文件 Open project: forger/FluentMetadata Class Usage Examples

Private Properties

Property Type Description
RangeRule System

Public Methods

Method Description
FormatErrorMessage ( string name ) : string
IsValid ( object value ) : bool
RangeRule ( IComparable minimum, IComparable maximum, Type propertyType ) : System

Protected Methods

Method Description
EqualsRule ( Rule rule ) : bool

Private Methods

Method Description
RangeRule ( ) : System

Method Details

EqualsRule() protected method

protected EqualsRule ( Rule rule ) : bool
rule Rule
return bool

FormatErrorMessage() public method

public FormatErrorMessage ( string name ) : string
name string
return string

IsValid() public method

public IsValid ( object value ) : bool
value object
return bool

RangeRule() public method

public RangeRule ( IComparable minimum, IComparable maximum, Type propertyType ) : System
minimum IComparable
maximum IComparable
propertyType Type
return System