System.Xml.Xsl.XPathConvert.IsInteger C# (CSharp) Méthode

IsInteger() public static méthode

public static IsInteger ( double dbl, int &value ) : bool
dbl double
value int
Résultat bool
        public static bool IsInteger(double dbl, out int value) {
            if (!IsSpecial(dbl)) {
                int i = (int) dbl;
                double dblRound = (double) i;

                if (dbl == dblRound) {
                    value = i;
                    return true;
                }
            }
            value = 0;
            return false;
        }