예제 #1
0
        public override int GetHashCode()
        {
            if (LsnStr == null)
            {
                return(0);
            }

            return(LsnStr.GetHashCode());
        }
예제 #2
0
        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));
        }