hasBogus() public méthode

public hasBogus ( ) : bool
Résultat bool
Exemple #1
0
        public bool CheckBogus(CType pType)
        {
            if (pType == null)
            {
                return(false);
            }

            if (!pType.hasBogus())
            {
                bool fBogus = pType.computeCurrentBogusState();

                if (fBogus)
                {
                    // Only set this if everything is declared or
                    // at least 1 declared thing is bogus
                    pType.setBogus(fBogus);
                }
            }

            return(pType.hasBogus() && pType.checkBogus());
        }
Exemple #2
0
        public bool CheckBogus(CType pType)
        {
            if (pType == null)
            {
                return false;
            }

            if (!pType.hasBogus())
            {
                bool fBogus = pType.computeCurrentBogusState();

                if (fBogus)
                {
                    // Only set this if everything is declared or
                    // at least 1 declared thing is bogus
                    pType.setBogus(fBogus);
                }
            }

            return pType.hasBogus() && pType.checkBogus();
        }