コード例 #1
0
 public override int GetHashCode()
 {
     unchecked
     {
         int result = (SourceItem != null ? SourceItem.GetHashCode() : 0);
         result = (result * 397) ^ (Ascc != null ? Ascc.GetHashCode() : 0);
         result = (result * 397) ^ (Acc != null ? Acc.GetHashCode() : 0);
         return(result);
     }
 }
コード例 #2
0
ファイル: LoginClient.cs プロジェクト: workTrunk/MFrameWork
        public override int GetHashCode()
        {
            int hash = 1;

            if (Acc.Length != 0)
            {
                hash ^= Acc.GetHashCode();
            }
            if (Pwd.Length != 0)
            {
                hash ^= Pwd.GetHashCode();
            }
            return(hash);
        }
 public override int GetHashCode()
 {
     return(Acc != null ? Acc.GetHashCode() : 0);
 }