Пример #1
0
        private static bool NotEqualsExtracted(ReadOnlyStructNeedle <T> left, ReadOnlyStructNeedle <T> right)
        {
            var leftValue = left._target;

            if (left.IsAlive)
            {
                var rightValue = right._target;
                return(!right.IsAlive || !EqualityComparer <T> .Default.Equals(leftValue, rightValue));
            }
            return(right.IsAlive);
        }
Пример #2
0
 public bool Equals(ReadOnlyStructNeedle <T> other)
 {
     return(EqualsExtracted(this, other));
 }