enabled property

bool enabled
getter/setter pair

Sets whether or not the validator is enabled globally or not. Set to false to disable validation across the entire application. This cannot be used to globally enable validation. Rather it can be used only to globally disable validation. A value of true can still be overridden by values passed to validate. But a value of false will ensure that validate always skips the validation.

Implementation

static bool enabled = true;