setBogus() public méthode

public setBogus ( bool isBogus ) : void
isBogus bool
Résultat void
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();
        }