コード例 #1
0
 /// <include file='doc\DataGridViewAdvancedBorderStyle.uex' path='docs/doc[@for="DataGridViewAdvancedBorderStyle.GetHashCode"]/*' />
 /// <internalonly/>
 public override int GetHashCode()
 {
     return(WindowsFormsUtils.GetCombinedHashCodes((int)this.top,
                                                   (int)this.left,
                                                   (int)this.bottom,
                                                   (int)this.right));
 }
コード例 #2
0
 public override int GetHashCode()
 {
     // Structs should implement GetHashCode for perf
     return(WindowsFormsUtils.GetCombinedHashCodes(
                this.row,
                this.column));
 }
コード例 #3
0
 /// <include file='doc\DataGridViewCellStyle.uex' path='docs/doc[@for="DataGridViewCellStyle.GetHashCode"]/*' />
 public override int GetHashCode()
 {
     return(WindowsFormsUtils.GetCombinedHashCodes((int)this.Alignment,
                                                   (int)this.WrapMode,
                                                   this.Padding.GetHashCode(),
                                                   this.Format.GetHashCode(),
                                                   this.BackColor.GetHashCode(),
                                                   this.ForeColor.GetHashCode(),
                                                   this.SelectionBackColor.GetHashCode(),
                                                   this.SelectionForeColor.GetHashCode(),
                                                   (this.Font == null ? 1 : this.Font.GetHashCode()),
                                                   (this.NullValue == null ? 1 : this.NullValue.GetHashCode()),
                                                   (this.DataSourceNullValue == null ? 1 : this.DataSourceNullValue.GetHashCode()),
                                                   (this.Tag == null ? 1 : this.Tag.GetHashCode())));
 }
 public override int GetHashCode()
 {
     return(WindowsFormsUtils.GetCombinedHashCodes(new int[] { this.top, this.left, this.bottom, this.right }));
 }
コード例 #5
0
 /// <include file='doc\DataGridViewHitTestInfo.uex' path='docs/doc[@for="DataGridView.HitTestInfo.GetHashCode"]/*' />
 /// <devdoc>
 /// <para>Gets the hash code for the <see cref='System.Windows.Forms.DataGridView.HitTestInfo'/> instance.</para>
 /// </devdoc>
 public override int GetHashCode()
 {
     return(WindowsFormsUtils.GetCombinedHashCodes((int)this.type,
                                                   this.row,
                                                   this.col));
 }
コード例 #6
0
 public override int GetHashCode()
 {
     return(WindowsFormsUtils.GetCombinedHashCodes(new int[] { this.row, this.column }));
 }