Redzen.Structures.Compact.FixedPointDecimal.Equals C# (CSharp) 메소드

Equals() 공개 정적인 메소드

Determines whether the specified FixedPointDecimal is equal to the current FixedPointDecimal.
public static Equals ( FixedPointDecimal d1, FixedPointDecimal d2 ) : bool
d1 FixedPointDecimal The first to compare.
d2 FixedPointDecimal The second to compare.
리턴 bool
        public static bool Equals(FixedPointDecimal d1, FixedPointDecimal d2)
        {
            // We can calculate value equality by testing bitwise equality. This is possible because we
            // are using a fixed point representation *and* we convert -0 to +0 (the only other possible ambiguity).
            return d1._data == d2._data;
        }

Same methods

FixedPointDecimal::Equals ( object value ) : bool