コード例 #1
0
 public override int GetHashCode()
 {
     unchecked {
         var hash = 17;
         hash = hash * 37 + InternalName.GetHashCode();
         hash = hash * 37 + MemberInfoComparer.Default.GetHashCode(Member);
         return(hash);
     }
 }
コード例 #2
0
 public override int GetHashCode()
 {
     return
         (Position.GetHashCode() ^
          ActorSNO.GetHashCode() ^
          InternalName.GetHashCode() ^
          WorldId.GetHashCode() ^
          Quality.GetHashCode() ^
          Level.GetHashCode());
 }
コード例 #3
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = ContentId.GetHashCode();
         hashCode = (hashCode * 397) ^ (IconUrl?.GetHashCode() ?? 0);
         hashCode = (hashCode * 397) ^ Id.GetHashCode();
         hashCode = (hashCode * 397) ^ (InternalName?.GetHashCode() ?? 0);
         hashCode = (hashCode * 397) ^ (Name?.GetHashCode() ?? 0);
         hashCode = (hashCode * 397) ^ (SupportedGameModes?.GetHashCode() ?? 0);
         return(hashCode);
     }
 }
コード例 #4
0
ファイル: IoFormat.cs プロジェクト: timkaiser/MiMeMal
        public override int GetHashCode()
        {
            int hash = 1;

            if (InternalName.Length != 0)
            {
                hash ^= InternalName.GetHashCode();
            }
            if (MessageFormat.Length != 0)
            {
                hash ^= MessageFormat.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
コード例 #5
0
ファイル: GameParticipant.cs プロジェクト: Elophant/Client
 public override int GetHashCode()
 {
     return(InternalName.GetHashCode());
 }
コード例 #6
0
 public override int GetHashCode()
 {
     return(InternalName != null ? InternalName.GetHashCode() : 0);
 }