This project has moved. For the latest updates, please go here.
The TextValidator contains methods which validates text-based things.

Methods

Validate

This method validates a property of the Base-Object on it´s emptyness.

Parameters
BaseValue (must be of type PropertyInfo or FieldInfo - should be a reflected parameter)
This is the value which has to be validated - like the "Text"-property of some .Net controls.

MustBeEmpty (must be of type bool - should be a static parameter)
This parameter states if the BaseValue must be empty/null or not.
Default: false
Options: false = must not be empty, true must be empty/null

ValidateTextOfTwo

This method validates two dynamic strings on their equality.

Parameters
BaseValue (must be of type PropertyInfo or FieldInfo - should be a reflected parameter)
ReferenceValue (must be of type PropertyInfo or FieldInfo or string - should be a reflected/static parameter)
TextValidator:Invert (must be of type bool - should be a static parameter)
This parameter states whether the validator should validate using != or ==.
Default: false
Options: false = ==, true = !=

Last edited Jul 15, 2011 at 3:46 PM by Razer, version 3

Comments

No comments yet.