示例#1
0
        public override bool DoCheck(FValidatorParameters parameters)
        {
            string value = RString.Nvl(parameters.Value);

            if (!RString.IsEmpty(value))
            {
                if (!RString.CheckPattern(value, _partternChars))
                {
                    parameters.Description = _resource.FindDisplay(MSG_INVALID_PARTTERN, _description);
                    return(false);
                }
            }
            return(true);
        }