コード例 #1
0
ファイル: BookActivityId.cs プロジェクト: raberana/Readpublic
        private bool Equals(BookActivityId other)
        {
            if (ReferenceEquals(other, null)) return false;
            if (ReferenceEquals(this, other)) return true;

            return UserId == other.UserId &&
                BookId == other.BookId;
        }
コード例 #2
0
        private bool Equals(BookActivityId other)
        {
            if (ReferenceEquals(other, null))
            {
                return(false);
            }
            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            return(UserId == other.UserId &&
                   BookId == other.BookId);
        }