Exemple #1
0
        private static bool AreEqual(ScriptRef x, ScriptRef y)
        {
            bool xIsNull = ReferenceEquals(x, null);
            bool yIsNull = ReferenceEquals(y, null);

            if (xIsNull != yIsNull)
            {
                return(false);
            }
            else
            {
                return(xIsNull || x.Equals(y));
            }
        }
Exemple #2
0
        private static bool AreEqual(ScriptRef x, ScriptRef y) {
            bool xIsNull = ReferenceEquals(x, null);
            bool yIsNull = ReferenceEquals(y, null);

            if (xIsNull != yIsNull)
            {
                return false;
            }
            else
            {
                return xIsNull || x.Equals(y);
            }
        }