コード例 #1
0
ファイル: ValueConfig.cs プロジェクト: wuhuolong/MaxBooks
        public override int GetHashCode()
        {
            int hash = 1;

            if (RatingId != 0)
            {
                hash ^= RatingId.GetHashCode();
            }
            if (RatingName.Length != 0)
            {
                hash ^= RatingName.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
コード例 #2
0
ファイル: Rating.cs プロジェクト: fossabot/ThingAppraiser
 /// <inheritdoc />
 public override int GetHashCode()
 {
     return(RatingId.GetHashCode());
 }