Abstract:
Abstract:〖WT〗In traditional Delphi deuelopmert,the validation for single-input values needs writing specific code.In different projects,achieve the same validation rules need rewriting or copying the same validation code.Thus resulting in duplicated code and bad smell in code.Extract the generic validation code to build a convenient,lightweight framework is very valueable.This paper builds a generic validation framework in Delphi,encapsulates the most common validation rules,and support for custom validation rules.