/// <summary>
        /// Check if property has required length.
        /// </summary>
        /// <param name="min">min length.</param>
        /// <param name="max">maw length.</param>
        /// <returns>Current instance.</returns>
        public PropertyValidator <TRow> HasLength(int min, int max)
        {
            StringRule <TRow> method = new StringRule <TRow>((x) => this.getter(x));

            method.HasLength(min, max);
            this.validationRules.Add(method);
            return(this);
        }