public override int GetHashCode() { unchecked { int hashCode = 0; foreach (var c in Components) { hashCode = (hashCode * 397) ^ c.GetHashCode(); } foreach (var a in Applications) { hashCode = (hashCode * 397) ^ a.GetHashCode(); } hashCode = (hashCode * 397) ^ (Url != null ? Url.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (Password != null ? Password.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (Username != null ? Username.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (ProjectKey != null ? ProjectKey.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (Name != null ? Name.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (Caption != null ? Caption.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (Labels != null ? Labels.GetHashCode() : 0); return(hashCode); } }
public override int GetHashCode() { unchecked { int result = Id.GetHashCode(); result = (result * 397) ^ (Urn != null ? Urn.GetHashCode() : 0); result = (result * 397) ^ UserId.GetHashCode(); result = (result * 397) ^ DateAdded.GetHashCode(); result = (result * 397) ^ DateModified.GetHashCode(); result = (result * 397) ^ (TargetUserId.HasValue ? TargetUserId.Value.GetHashCode() : 0); result = (result * 397) ^ (ForwardedPostId.HasValue ? ForwardedPostId.Value.GetHashCode() : 0); result = (result * 397) ^ OriginUserId.GetHashCode(); result = (result * 397) ^ (OriginUserName != null ? OriginUserName.GetHashCode() : 0); result = (result * 397) ^ SourceUserId.GetHashCode(); result = (result * 397) ^ (SourceUserName != null ? SourceUserName.GetHashCode() : 0); result = (result * 397) ^ (SubjectUrn != null ? SubjectUrn.GetHashCode() : 0); result = (result * 397) ^ (ContentUrn != null ? ContentUrn.GetHashCode() : 0); result = (result * 397) ^ (TrackUrns != null ? TrackUrns.GetHashCode() : 0); result = (result * 397) ^ (Caption != null ? Caption.GetHashCode() : 0); result = (result * 397) ^ CaptionUserId.GetHashCode(); result = (result * 397) ^ (CaptionSourceName != null ? CaptionSourceName.GetHashCode() : 0); result = (result * 397) ^ (ForwardedPostUrn != null ? ForwardedPostUrn.GetHashCode() : 0); result = (result * 397) ^ PostType.GetHashCode(); result = (result * 397) ^ (OnBehalfOfUserId.HasValue ? OnBehalfOfUserId.Value.GetHashCode() : 0); return(result); } }
public override int GetHashCode() { unchecked { var hashCode = MinorVersion.GetHashCode(); hashCode = (hashCode * 397) ^ MajorVersion.GetHashCode(); hashCode = (hashCode * 397) ^ (PropMask?.GetHashCode() ?? 0); hashCode = (hashCode * 397) ^ (BackColor?.GetHashCode() ?? 0); hashCode = (hashCode * 397) ^ (ForeColor?.GetHashCode() ?? 0); hashCode = (hashCode * 397) ^ (FontTextProps?.GetHashCode() ?? 0); hashCode = (hashCode * 397) ^ (int)NextAvailableId; hashCode = (hashCode * 397) ^ (BooleanProperties?.GetHashCode() ?? 0); hashCode = (hashCode * 397) ^ (int)BorderStyle; hashCode = (hashCode * 397) ^ (int)MousePointer; hashCode = (hashCode * 397) ^ (ScrollBars?.GetHashCode() ?? 0); hashCode = (hashCode * 397) ^ GroupCount; hashCode = (hashCode * 397) ^ (int)Cycle; hashCode = (hashCode * 397) ^ (int)SpecialEffect; hashCode = (hashCode * 397) ^ (BorderColor?.GetHashCode() ?? 0); hashCode = (hashCode * 397) ^ (int)Zoom; hashCode = (hashCode * 397) ^ (int)PictureAlignment; hashCode = (hashCode * 397) ^ (int)PictureSizeMode; hashCode = (hashCode * 397) ^ (int)ShapeCookie; hashCode = (hashCode * 397) ^ (int)DrawBuffer; hashCode = (hashCode * 397) ^ (DisplayedSize?.GetHashCode() ?? 0); hashCode = (hashCode * 397) ^ (LogicalSize?.GetHashCode() ?? 0); hashCode = (hashCode * 397) ^ (ScrollPosition?.GetHashCode() ?? 0); hashCode = (hashCode * 397) ^ (Caption?.GetHashCode() ?? 0); hashCode = (hashCode * 397) ^ FontIsStdFont.GetHashCode(); hashCode = (hashCode * 397) ^ (FontStdFont?.GetHashCode() ?? 0); return(hashCode); } }
/// <summary> /// 返回该实例的哈希代码 /// </summary> /// <returns></returns> public override int GetHashCode() { return(FieldName.GetHashCode() ^ Caption.GetHashCode() ^ IsString.GetHashCode() ^ Operator.GetHashCode()); }
public override int GetHashCode() { return(Caption.GetHashCode() .CombineHashCode(Name) .CombineHashCode(Width) .CombineHashCode(HorizontalAlignment)); }
public override int GetHashCode() { unchecked { int hashCode = 0; foreach (var c in Components) { hashCode = (hashCode * 397) ^ c.GetHashCode(); } foreach (var a in Applications) { hashCode = (hashCode * 397) ^ a.GetHashCode(); } hashCode = (hashCode * 397) ^ (Url?.GetHashCode() ?? 0); hashCode = (hashCode * 397) ^ (Password?.GetHashCode() ?? 0); hashCode = (hashCode * 397) ^ (Username?.GetHashCode() ?? 0); hashCode = (hashCode * 397) ^ (ProjectKey?.GetHashCode() ?? 0); hashCode = (hashCode * 397) ^ (Name?.GetHashCode() ?? 0); hashCode = (hashCode * 397) ^ (Caption?.GetHashCode() ?? 0); hashCode = (hashCode * 397) ^ (Labels?.GetHashCode() ?? 0); return(hashCode); } }
public override int GetHashCode() { unchecked { return(((Caption != null ? Caption.GetHashCode() : 0) * 397) ^ (Lines != null ? Lines.GetHashCode() : 0)); } }
/// <summary> /// Returns a hash code for this instance. /// </summary> /// <returns> /// A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table. /// </returns> public override int GetHashCode() { if (Caption == null) { return(0); } return(Caption.GetHashCode()); }
public override int GetHashCode() { unchecked { return(((Message != null ? Message.GetHashCode() : 0) * 397) ^ (Caption != null ? Caption.GetHashCode() : 0)); } }
public override int GetHashCode() { unchecked { var hashCode = Id; hashCode = (hashCode * 397) ^ (Caption != null ? Caption.GetHashCode() : 0); hashCode = (hashCode * 397) ^ Order.GetHashCode(); return(hashCode); } }
/// <summary> /// Gets the hash code /// </summary> /// <returns></returns> public override int GetHashCode() { unchecked { var hashCode = (Caption != null ? Caption.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (Language != null ? Language.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (Slides != null ? Slides.GetHashCode() : 0); return(hashCode); } }
public override int GetHashCode() { unchecked { var hashCode = (SourceColumn != null ? SourceColumn.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (Caption != null ? Caption.GetHashCode() : 0); hashCode = (hashCode * 397) ^ Visible.GetHashCode(); return(hashCode); } }
public override int GetHashCode() { unchecked { var result = (Start.HasValue ? Start.Value.GetHashCode() : 0); result = (result * 397) ^ (End.HasValue ? End.Value.GetHashCode() : 0); result = (result * 397) ^ (Process != null ? Process.GetHashCode() : 0); result = (result * 397) ^ (Caption != null ? Caption.GetHashCode() : 0); return(result); } }
public override int GetHashCode() { var result = 0; result = (result * 397) ^ (Message == null ? 0 : Message.GetHashCode()); result = (result * 397) ^ (Caption == null ? 0 : Caption.GetHashCode()); result = (result * 397) ^ MessageBoxButton.GetHashCode(); result = (result * 397) ^ MessageBoxIcon.GetHashCode(); result = (result * 397) ^ RequiresSpecialCall.GetHashCode(); return(result); }
/// <summary>Serves as the default hash function. </summary> /// <returns>A hash code for the current object.</returns> public override int GetHashCode() { int hashCode = Caption.GetHashCode(); hashCode *= 31; hashCode += TimedCountDuration.GetHashCode(); hashCode *= 31; hashCode += EventTimeRange.GetHashCode(); hashCode *= 31; hashCode += GroupTimeRange.GetHashCode(); return(hashCode); }
public override int GetHashCode() { unchecked { int result = Name.GetHashCode(); result = (result * 397) ^ (Caption != null ? Caption.GetHashCode() : 0); result = (result * 397) ^ (Format != null ? Format.GetHashCode() : 0); result = (result * 397) ^ (Aggregate != null ? Aggregate.GetHashCode() : 0); result = (result * 397) ^ Hidden.GetHashCode(); return(result); } }
public override int GetHashCode() { unchecked { var hashCode = MediaUrl?.GetHashCode() ?? 0; hashCode = (hashCode * 397) ^ (MimeType?.GetHashCode() ?? 0); hashCode = (hashCode * 397) ^ (Caption?.GetHashCode() ?? 0); hashCode = (hashCode * 397) ^ (AlternateText?.GetHashCode() ?? 0); hashCode = (hashCode * 397) ^ (FolderPath?.GetHashCode() ?? 0); hashCode = (hashCode * 397) ^ (FileName?.GetHashCode() ?? 0); return(hashCode); } }
public override int GetHashCode() { unchecked { int result = base.GetHashCode(); result = (result * 397) ^ (Chapter != null ? Chapter.GetHashCode() : 0); result = (result * 397) ^ ChapterOrder; result = (result * 397) ^ (Caption != null ? Caption.GetHashCode() : 0); result = (result * 397) ^ CaptionOrder; result = (result * 397) ^ (Content != null ? Content.GetHashCode() : 0); result = (result * 397) ^ Order; return(result); } }
public override int GetHashCode() { int result = 0; try { result = ID.GetHashCode() + Caption.GetHashCode() + Messages.GetHashCode() + Creator.GetHashCode() + CreationDate.GetHashCode() + Link.GetHashCode(); } catch (StackOverflowException ex) { Console.WriteLine(ex.Message); } return(result); }
public override int GetHashCode() { unchecked { int result = Name.GetHashCode(); result = (result * 397) ^ (Caption != null ? Caption.GetHashCode() : 0); result = (result * 397) ^ (Format != null ? Format.GetHashCode() : 0); result = (result * 397) ^ Hidden.GetHashCode(); result = (result * 397) ^ (SortIndex != null ? SortIndex.GetHashCode() : 0); result = (result * 397) ^ (SortDirection != null ? SortDirection.GetHashCode() : 0); result = (result * 397) ^ Total.GetHashCode(); return(result); } }
/// <summary> /// Provides a representative hash code for objects of this type to spread out distribution /// in hash tables. /// </summary> /// <remarks>Objects which consider themselves to be Equal (a.Equals(b) returns true) are /// expected to have the same hash code. Objects which are not Equal may have the same /// hash code, but minimizing such overlaps helps with efficient operation of hash tables. /// </remarks> /// <returns> /// an int representing the hash code calculated for the contents of this object /// </returns> public override int GetHashCode() { int myHash = base.GetHashCode(); // Fold in hash code for inherited base type myHash ^= (int)Severity; // Fold in Severity (enum) as an int as its own hash code myHash ^= Id.GetHashCode(); // Fold in hash code for GUID if (Caption != null) { myHash ^= Caption.GetHashCode(); // Fold in hash code for string Caption } if (Description != null) { myHash ^= Description.GetHashCode(); // Fold in hash code for string Caption } if (Details != null) { myHash ^= Details.GetHashCode(); // Fold in hash code for string Caption } if (LogSystem != null) { myHash ^= LogSystem.GetHashCode(); // Fold in hash code for string LogSystem } if (CategoryName != null) { myHash ^= CategoryName.GetHashCode(); // Fold in hash code for string CategoryName } if (UserName != null) { myHash ^= UserName.GetHashCode(); // Fold in hash code for string UserName } if (MethodName != null) { myHash ^= MethodName.GetHashCode(); // Fold in hash code for string MethodName } if (ClassName != null) { myHash ^= ClassName.GetHashCode(); // Fold in hash code for string ClassName } if (FileName != null) { myHash ^= FileName.GetHashCode(); // Fold in hash code for string FileName } myHash ^= LineNumber; // Fold in LineNumber int as its own hash code myHash ^= ThreadId; // Fold in ThreadId int as its own hash code // Session member is not used in Equals, so we can't use it in hash calculation! return(myHash); }
/// <inheritdoc /> public override int GetHashCode() { unchecked { int hashCode = ChatId is not null?ChatId.GetHashCode() : 0; hashCode = (hashCode * 397) ^ (Phone is not null ? Phone.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (QuotedMessageId is not null ? QuotedMessageId.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (Body is not null ? Body.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (FileName is not null ? FileName.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (Caption is not null ? Caption.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (MentionedPhones is not null ? MentionedPhones.GetHashCode() : 0); hashCode = (hashCode * 397) ^ Cached.GetHashCode(); return(hashCode); } }
public override int GetHashCode() { unchecked { var hashCode = MinorVersion.GetHashCode(); hashCode = (hashCode * 397) ^ MajorVersion.GetHashCode(); hashCode = (hashCode * 397) ^ (PropMask?.GetHashCode() ?? 0); hashCode = (hashCode * 397) ^ (ForeColor?.GetHashCode() ?? 0); hashCode = (hashCode * 397) ^ (BackColor?.GetHashCode() ?? 0); hashCode = (hashCode * 397) ^ (int)VariousPropertyBits; hashCode = (hashCode * 397) ^ (Caption?.GetHashCode() ?? 0); hashCode = (hashCode * 397) ^ (int)PicturePosition; hashCode = (hashCode * 397) ^ (int)MousePointer; hashCode = (hashCode * 397) ^ (Accelerator?.GetHashCode() ?? 0); hashCode = (hashCode * 397) ^ (Size?.GetHashCode() ?? 0); hashCode = (hashCode * 397) ^ (Picture?.Length.GetHashCode() ?? 0); hashCode = (hashCode * 397) ^ (MouseIcon?.Length.GetHashCode() ?? 0); hashCode = (hashCode * 397) ^ (TextProps?.GetHashCode() ?? 0); hashCode = (hashCode * 397) ^ (int)MaxLength; hashCode = (hashCode * 397) ^ (int)BorderStyle; hashCode = (hashCode * 397) ^ (ScrollBars?.GetHashCode() ?? 0); hashCode = (hashCode * 397) ^ DisplayStyle.GetHashCode(); hashCode = (hashCode * 397) ^ (PasswordChar?.GetHashCode() ?? 0); hashCode = (hashCode * 397) ^ (int)ListWidth; hashCode = (hashCode * 397) ^ BoundColumn.GetHashCode(); hashCode = (hashCode * 397) ^ TextColumn.GetHashCode(); hashCode = (hashCode * 397) ^ ColumnCount.GetHashCode(); hashCode = (hashCode * 397) ^ ListRows.GetHashCode(); hashCode = (hashCode * 397) ^ ColumnInfoCount.GetHashCode(); hashCode = (hashCode * 397) ^ MatchEntry.GetHashCode(); hashCode = (hashCode * 397) ^ ListStyle.GetHashCode(); hashCode = (hashCode * 397) ^ ShowDropButtonWhen.GetHashCode(); hashCode = (hashCode * 397) ^ DropButtonStyle.GetHashCode(); hashCode = (hashCode * 397) ^ MultiSelect.GetHashCode(); hashCode = (hashCode * 397) ^ (BorderColor?.GetHashCode() ?? 0); hashCode = (hashCode * 397) ^ (int)SpecialEffect; hashCode = (hashCode * 397) ^ (Value?.GetHashCode() ?? 0); hashCode = (hashCode * 397) ^ (GroupName?.GetHashCode() ?? 0); hashCode = (hashCode * 397) ^ (Remainder?.Length.GetHashCode() ?? 0); return(hashCode); } }
public override int GetHashCode() { unchecked { var hashCode = Picture?.Length.GetHashCode() ?? 0; hashCode = (hashCode * 397) ^ (MouseIcon?.Length.GetHashCode() ?? 0); hashCode = (hashCode * 397) ^ (TextProps?.GetHashCode() ?? 0); hashCode = (hashCode * 397) ^ MinorVersion.GetHashCode(); hashCode = (hashCode * 397) ^ MajorVersion.GetHashCode(); hashCode = (hashCode * 397) ^ (PropMask?.GetHashCode() ?? 0); hashCode = (hashCode * 397) ^ (ForeColor?.GetHashCode() ?? 0); hashCode = (hashCode * 397) ^ (BackColor?.GetHashCode() ?? 0); hashCode = (hashCode * 397) ^ (int)VariousPropertyBits; hashCode = (hashCode * 397) ^ (Caption?.GetHashCode() ?? 0); hashCode = (hashCode * 397) ^ (int)PicturePosition; hashCode = (hashCode * 397) ^ (int)MousePointer; hashCode = (hashCode * 397) ^ (Accelerator?.GetHashCode() ?? 0); hashCode = (hashCode * 397) ^ (Size?.GetHashCode() ?? 0); return(hashCode); } }
public override int GetHashCode() { int hash = 1; if (id_ != null) { hash ^= Id.GetHashCode(); } if (Username.Length != 0) { hash ^= Username.GetHashCode(); } if (Caption.Length != 0) { hash ^= Caption.GetHashCode(); } if (TimestampCreated != 0L) { hash ^= TimestampCreated.GetHashCode(); } return(hash); }
public override int GetHashCode() { return(Caption == null ? 0 : Caption.GetHashCode()); }
public override int GetHashCode() { return(ClassName.GetHashCode() ^ Caption.GetHashCode() ^ Style.GetHashCode() ^ ExtendedStyle.GetHashCode() ^ ClassStyle.GetHashCode() ^ Frame.GetHashCode() ^ ParentHandle.GetHashCode()); }
/// <summary> /// Рассчитать хеш-код объекта <see cref="DdeTable"/>. /// </summary> /// <returns>Хеш-код.</returns> public override int GetHashCode() { return(Type.GetHashCode() ^ Caption.GetHashCode()); }