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); }
private bool Equals(GuidRef other) { // ReSharper disable PossibleInvalidOperationException return(_ref.Value == other._ref.Value); // ReSharper restore PossibleInvalidOperationException }