System.Xml.Xsl.XPathConvert.FloatingDecimal.Equals C# (CSharp) Method

Equals() private method

private Equals ( FloatingDecimal other ) : bool
other FloatingDecimal
return bool
            private bool Equals(FloatingDecimal other) {
                if (exponent != other.exponent || sign != other.sign || mantissaSize != other.mantissaSize) {
                    return false;
                }
                for (int idx = 0; idx < mantissaSize; idx++) {
                    if (mantissa[idx] != other.mantissa[idx]) {
                        return false;
                    }
                }
                return true;
            }
        #endif