Esempio n. 1
0
        public bool int32CheckSecurity(string CommandText, int CountNumber)
        {
            AntiInjection _Anti = new AntiInjection();

            _Anti.Address  = true;
            _Anti.Email    = true;
            _Anti.FullName = true;
            _Anti.Password = true;
            _Anti.Url      = true;
            if (_Anti.StringData(CommandText))
            {
                Int32Check = int_Check_PV(CommandText);
                if (Int32Check == CountNumber)
                {
                    Int32CheckError = "Successful";
                    return(true);
                }
                else
                {
                    Int32CheckError = "Not Match";
                    return(false);
                }
            }
            else
            {
                Int32CheckError = "Error: String is not Secure.";
                return(false);
            }
        }