Class OnlinerValidationRule<T>
Generic class provides base for tags validation rules.
Inheritance
System.Object
OnlinerValidationRule<T>
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Vortex.Connector.ValueValidation
Assembly: Vortex.Connector.dll
Syntax
public abstract class OnlinerValidationRule<T>
Type Parameters
Name | Description |
---|---|
T |
Constructors
OnlinerValidationRule(IValueBoundaries<T>)
Initializes a new instance of the ByteValueValidationRule class.
Declaration
public OnlinerValidationRule(IValueBoundaries<T> onliner)
Parameters
Type | Name | Description |
---|---|---|
IValueBoundaries<T> | onliner | Onliner type. |
Fields
onliner
Declaration
IValueBoundaries<T> onliner
Field Value
Type | Description |
---|---|
IValueBoundaries<T> |
Properties
Max
Gets the max. allowed value.
Declaration
public T Max { get; }
Property Value
Type | Description |
---|---|
T |
Min
Gets the min. allowed value.
Declaration
public T Min { get; }
Property Value
Type | Description |
---|---|
T |
ValidationErrorTip
Provides validation tip.
Declaration
public string ValidationErrorTip { get; protected set; }
Property Value
Type | Description |
---|---|
System.String |
Methods
Validate(T, CultureInfo)
Validates value.
Declaration
public abstract ValidationResult Validate(T value, CultureInfo culture)
Parameters
Type | Name | Description |
---|---|---|
T | value | Value to be validated. |
System.Globalization.CultureInfo | culture | Culture. |
Returns
Type | Description |
---|---|
ValidationResult |