public override bool IsValid(object?value) { if (value == null) { return(CanBeNull); } return(value is string text && ValidationMethods.IsPositiveNumber(text)); }