コード例 #1
0
ファイル: Variables.cs プロジェクト: greshniksv/SimpleRuby
 public override int GetHashCode()
 {
     unchecked
     {
         int hashCode = (StatementId != null ? StatementId.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Name != null ? Name.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Variable != null ? Variable.GetHashCode() : 0);
         return(hashCode);
     }
 }
コード例 #2
0
        public override int GetHashCode()
        {
            int hashcode = 157;

            unchecked {
                hashcode = (hashcode * 397) + SessionId.GetHashCode();
                hashcode = (hashcode * 397) + Statement.GetHashCode();
                hashcode = (hashcode * 397) + StatementId.GetHashCode();
                if (__isset.fetchSize)
                {
                    hashcode = (hashcode * 397) + FetchSize.GetHashCode();
                }
            }
            return(hashcode);
        }