public override int GetHashCode() { if (LsnStr == null) { return(0); } return(LsnStr.GetHashCode()); }
public override bool Equals(object obj) { var tranId = obj as TransactionId; if (tranId == null || LsnStr == null) { return(false); } if (LsnStr == null) { return(false); } return(LsnStr.Equals(tranId.LsnStr, StringComparison.Ordinal)); }