/// <summary>
        /// Summary to construct from validaing attribute  the parameters.
        /// </summary>
        /// <param name="A"></param>
        /// <param name="Target"></param>
        public ErrorInfo(ValidatorAttribute A, string Target) : base()
        {
            //Security Defect -CH3- Start - Modified the code and Message such that the target field is added in the message and error code of the  corresponding target field is read from he config entry.
            //this.Code=A.Code;
            //this.Message = A.Message;
            string errCode = "ERRCDE_" + Target.ToUpper();

            this.Code    = Config.Setting(errCode).ToString();
            this.Message = A.Message + Target + ".";
            //Security Defect -CH3- End - Modified the code and Message such that the target field is added in the message and error code of the  corresponding target field is read from he config entry.
            this.Target = Target;
            Logger.Log("Validation failed in " + Target + this.Code);
        }
        ///<summary>Compares priority order.</summary>
        public int CompareTo(object O)
        {
            if (O == null)
            {
                return(1);
            }
            ValidatorAttribute V = O as ValidatorAttribute;

            if (V == null)
            {
                throw new ArgumentException("Argument is not ValidatorAttribute.");
            }
            if (V.Priority == Priority)
            {
                return(0);
            }
            if (V.Priority > Priority)
            {
                return(-1);
            }
            return(1);
        }