Esempio n. 1
0
        public new static bool Equals(dynamic a, dynamic b)
        {
            dynamic resultA = a == null ? 0 : a;
            dynamic resultB = b == null ? 0 : b;

            if (resultA.GetType() != resultB.GetType())
            {
                DynamicCast.CastValue(a, b, ref resultA, ref resultB);
            }

            return(resultA == resultB);
        }
Esempio n. 2
0
        public new static bool Equals(dynamic a, dynamic b)
        {
#if !NET_STANDARD_2_0
            dynamic resultA = a == null ? 0 : a;
            dynamic resultB = b == null ? 0 : b;

            if (resultA.GetType() != resultB.GetType())
            {
                DynamicCast.CastValue(a, b, ref resultA, ref resultB);
            }

            return(resultA == resultB);
#else
            throw new WrongApiCompatibilityLevelException();
#endif
        }