/// <summary> /// Gets the hash code /// </summary> /// <returns>Hash code</returns> public override int GetHashCode() { unchecked // Overflow is fine, just wrap { var hashCode = 41; // Suitable nullity checks etc, of course :) if (Name != null) { hashCode = hashCode * 59 + Name.GetHashCode(); } if (Description != null) { hashCode = hashCode * 59 + Description.GetHashCode(); } if (CreatedBy != null) { hashCode = hashCode * 59 + CreatedBy.GetHashCode(); } if (CreatedAt != null) { hashCode = hashCode * 59 + CreatedAt.GetHashCode(); } if (Id != null) { hashCode = hashCode * 59 + Id.GetHashCode(); } if (Secret != null) { hashCode = hashCode * 59 + Secret.GetHashCode(); } hashCode = hashCode * 59 + Enabled.GetHashCode(); return(hashCode); } }
public override int GetHashCode() { unchecked { const int randomPrime = 397; int hashCode = Id.GetHashCode(); hashCode = (hashCode * randomPrime) ^ DocumentId.GetHashCode(); hashCode = (hashCode * randomPrime) ^ Rating.GetHashCode(); hashCode = (hashCode * randomPrime) ^ CreatedBy.GetHashCode(); hashCode = (hashCode * randomPrime) ^ CreatedAt.GetHashCode(); return(hashCode); } }
public virtual int _GetUniqueIdentifier() { var hashCode = 399326290; hashCode = hashCode * -1521134295 + (Id?.GetHashCode() ?? 0); hashCode = hashCode * -1521134295 + (Message?.GetHashCode() ?? 0); hashCode = hashCode * -1521134295 + (TotalSupplierStock?.GetHashCode() ?? 0); hashCode = hashCode * -1521134295 + (OrderForecastQuantity?.GetHashCode() ?? 0); hashCode = hashCode * -1521134295 + (Diff?.GetHashCode() ?? 0); hashCode = hashCode * -1521134295 + (SalesForecastDate?.GetHashCode() ?? 0); hashCode = hashCode * -1521134295 + (CreatedBy?.GetHashCode() ?? 0); return(hashCode); }
public override int GetHashCode() { unchecked { const int randomPrime = 397; int hashCode = Id.GetHashCode(); hashCode = (hashCode * randomPrime) ^ DocumentId.GetHashCode(); hashCode = (hashCode * randomPrime) ^ (Text != null ? Text.GetHashCode() : 0); hashCode = (hashCode * randomPrime) ^ CreatedBy.GetHashCode(); hashCode = (hashCode * randomPrime) ^ CreatedAt.GetHashCode(); hashCode = (hashCode * randomPrime) ^ (DeletedAt != null ? DeletedAt.GetHashCode() : 0); return(hashCode); } }
public override int GetHashCode() { unchecked { int hashCode = (Id != null ? Id.GetHashCode() : 0); hashCode = (hashCode * 397) ^ VersionCounter.GetHashCode(); hashCode = (hashCode * 397) ^ Created.GetHashCode(); hashCode = (hashCode * 397) ^ LastUpdated.GetHashCode(); hashCode = (hashCode * 397) ^ (CreatedBy != null ? CreatedBy.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (WorkspaceId != null ? WorkspaceId.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (BranchName != null ? BranchName.GetHashCode() : 0); return(hashCode); } }
public virtual int _GetUniqueIdentifier() { var hashCode = 399326290; hashCode = hashCode * -1521134295 + (Id?.GetHashCode() ?? 0); hashCode = hashCode * -1521134295 + (ImportId?.GetHashCode() ?? 0); hashCode = hashCode * -1521134295 + (Status?.GetHashCode() ?? 0); hashCode = hashCode * -1521134295 + (CreatedBy?.GetHashCode() ?? 0); hashCode = hashCode * -1521134295 + (CreatedOn?.GetHashCode() ?? 0); hashCode = hashCode * -1521134295 + (StartDate?.GetHashCode() ?? 0); hashCode = hashCode * -1521134295 + (EndDate?.GetHashCode() ?? 0); hashCode = hashCode * -1521134295 + (State?.GetHashCode() ?? 0); return(hashCode); }
public override int GetHashCode() { unchecked { int hashCode = (Name != null ? Name.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (CreatedBy != null ? CreatedBy.GetHashCode() : 0); hashCode = (hashCode * 397) ^ Created.GetHashCode(); hashCode = (hashCode * 397) ^ LastUpdated.GetHashCode(); hashCode = (hashCode * 397) ^ (Id != null ? Id.GetHashCode() : 0); hashCode = (hashCode * 397) ^ VersionCounter.GetHashCode(); hashCode = (hashCode * 397) ^ (Workspaces != null ? Workspaces.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (Description != null ? Description.GetHashCode() : 0); return(hashCode); } }
public override int GetHashCode() { unchecked { const int randomPrime = 397; int hashCode = Id.GetHashCode(); hashCode = (hashCode * randomPrime) ^ UniversityId.GetHashCode(); hashCode = (hashCode * randomPrime) ^ (Group != null ? Group.GetHashCode() : 0); hashCode = (hashCode * randomPrime) ^ (Name != null ? Name.GetHashCode() : 0); hashCode = (hashCode * randomPrime) ^ (Code != null ? Code.GetHashCode() : 0); hashCode = (hashCode * randomPrime) ^ CreatedBy.GetHashCode(); hashCode = (hashCode * randomPrime) ^ CreatedAt.GetHashCode(); hashCode = (hashCode * randomPrime) ^ (DeletedAt != null ? DeletedAt.GetHashCode() : 0); return(hashCode); } }
public override int GetHashCode() { unchecked { int hashCode = (Id != null ? Id.GetHashCode() : 0); hashCode = (hashCode * 397) ^ VersionCounter.GetHashCode(); hashCode = (hashCode * 397) ^ Created.GetHashCode(); hashCode = (hashCode * 397) ^ LastUpdated.GetHashCode(); hashCode = (hashCode * 397) ^ (CreatedBy != null ? CreatedBy.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (ContentType != null ? ContentType.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (Filename != null ? Filename.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (Url != null ? Url.GetHashCode() : 0); hashCode = (hashCode * 397) ^ Size.GetHashCode(); return(hashCode); } }
public override int GetHashCode() { int hash = 1; if (Id.Length != 0) { hash ^= Id.GetHashCode(); } if (Description.Length != 0) { hash ^= Description.GetHashCode(); } if (createdAt_ != null) { hash ^= CreatedAt.GetHashCode(); } if (CreatedBy.Length != 0) { hash ^= CreatedBy.GetHashCode(); } if (modifiedAt_ != null) { hash ^= ModifiedAt.GetHashCode(); } if (Done != false) { hash ^= Done.GetHashCode(); } if (metadata_ != null) { hash ^= Metadata.GetHashCode(); } if (resultCase_ == ResultOneofCase.Error) { hash ^= Error.GetHashCode(); } if (resultCase_ == ResultOneofCase.Response) { hash ^= Response.GetHashCode(); } hash ^= (int)resultCase_; if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return(hash); }
public override int GetHashCode() { unchecked { int hashCode = (Id != null ? Id.GetHashCode() : 0); hashCode = (hashCode * 397) ^ VersionCounter.GetHashCode(); hashCode = (hashCode * 397) ^ Created.GetHashCode(); hashCode = (hashCode * 397) ^ (Name != null ? Name.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (CreatedBy != null ? CreatedBy.GetHashCode() : 0); hashCode = (hashCode * 397) ^ LastUpdated.GetHashCode(); hashCode = (hashCode * 397) ^ (Model != null ? Model.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (int)Type; hashCode = (hashCode * 397) ^ (Label != null ? Label.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (ComponentType != null ? ComponentType.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (Description != null ? Description.GetHashCode() : 0); return(hashCode); } }
public override int GetHashCode() { unchecked { int hashCode = (CreatedBy != null ? CreatedBy.GetHashCode() : 0); hashCode = (hashCode * 397) ^ Created.GetHashCode(); hashCode = (hashCode * 397) ^ LastUpdated.GetHashCode(); hashCode = (hashCode * 397) ^ (Id != null ? Id.GetHashCode() : 0); hashCode = (hashCode * 397) ^ VersionCounter.GetHashCode(); hashCode = (hashCode * 397) ^ (RootWorkspace != null ? RootWorkspace.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (Source != null ? Source.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (Target != null ? Target.GetHashCode() : 0); hashCode = (hashCode * 397) ^ Type; hashCode = (hashCode * 397) ^ Order; hashCode = (hashCode * 397) ^ (ReturnValue != null ? ReturnValue.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (Description != null ? Description.GetHashCode() : 0); return(hashCode); } }
public override int GetHashCode() { unchecked { int hashCode = (Id != null ? Id.GetHashCode() : 0); hashCode = (hashCode * 397) ^ Created.GetHashCode(); hashCode = (hashCode * 397) ^ (Name != null ? Name.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (ComponentModel != null ? ComponentModel.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (CreatedBy != null ? CreatedBy.GetHashCode() : 0); hashCode = (hashCode * 397) ^ LastUpdated.GetHashCode(); hashCode = (hashCode * 397) ^ VersionCounter.GetHashCode(); hashCode = (hashCode * 397) ^ (Components != null ? Components.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (References != null ? References.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (Tags != null ? Tags.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (Type != null ? Type.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (Description != null ? Description.GetHashCode() : 0); return(hashCode); } }
public override int GetHashCode() { unchecked { var hashCode = Id?.GetHashCode() ?? 0; hashCode = (hashCode * 397) ^ (RoomId?.GetHashCode() ?? 0); hashCode = (hashCode * 397) ^ (Message?.GetHashCode() ?? 0); hashCode = (hashCode * 397) ^ IsBot.GetHashCode(); hashCode = (hashCode * 397) ^ (CreatedBy?.GetHashCode() ?? 0); hashCode = (hashCode * 397) ^ CreatedOn.GetHashCode(); hashCode = (hashCode * 397) ^ (EditedBy?.GetHashCode() ?? 0); hashCode = (hashCode * 397) ^ EditedOn.GetHashCode(); hashCode = (hashCode * 397) ^ IsBotMentioned.GetHashCode(); hashCode = (hashCode * 397) ^ IsFromMyself.GetHashCode(); hashCode = (hashCode * 397) ^ (Type?.GetHashCode() ?? 0); hashCode = (hashCode * 397) ^ Mentions.GetHashCode(); hashCode = (hashCode * 397) ^ Starred.GetHashCode(); return(hashCode); } }
public override int GetHashCode() { unchecked { int hashCode = (Name != null ? Name.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (Model != null ? Model.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (State != null ? State.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (CreatedBy != null ? CreatedBy.GetHashCode() : 0); hashCode = (hashCode * 397) ^ Created.GetHashCode(); hashCode = (hashCode * 397) ^ LastUpdated.GetHashCode(); hashCode = (hashCode * 397) ^ (Id != null ? Id.GetHashCode() : 0); hashCode = (hashCode * 397) ^ VersionCounter.GetHashCode(); hashCode = (hashCode * 397) ^ (Version != null ? Version.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (RootWorkspace != null ? RootWorkspace.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (Children != null ? Children.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (Parent != null ? Parent.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (Type != null ? Type.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (TypeId != null ? TypeId.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (Description != null ? Description.GetHashCode() : 0); return(hashCode); } }
public override int GetHashCode() { int hash = 1; if (groupBookingId_ != null) { hash ^= GroupBookingId.GetHashCode(); } if (InvoiceNumber != 0) { hash ^= InvoiceNumber.GetHashCode(); } if (invoiceId_ != null) { hash ^= InvoiceId.GetHashCode(); } if (Voided != false) { hash ^= Voided.GetHashCode(); } if (createdBy_ != null) { hash ^= CreatedBy.GetHashCode(); } if (voidedBy_ != null) { hash ^= VoidedBy.GetHashCode(); } if (voidedAt_ != null) { hash ^= VoidedAt.GetHashCode(); } if (createdAt_ != null) { hash ^= CreatedAt.GetHashCode(); } return(hash); }