コード例 #1
0
        private static bool Equals(GuidRef left, GuidRef right)
        {
            if (ReferenceEquals(null, left) && ReferenceEquals(null, right))
            {
                return(true);
            }

            if (!ReferenceEquals(null, left) && !ReferenceEquals(null, right))
            {
                return(left.GetType() == right.GetType() &&
                       left.Equals(right));
            }

            return(false);
        }
コード例 #2
0
 private bool Equals(GuidRef other)
 {
     // ReSharper disable PossibleInvalidOperationException
     return(_ref.Value == other._ref.Value);
     // ReSharper restore PossibleInvalidOperationException
 }