public virtual void Validate( [NotNull] string value ) { if ( value == null ) throw new ArgumentNullException( "value" ); if ( NotBlank && value.Length == 0 ) { throw new FormatException( "Value cannot be blank or null." ); } }