コード例 #1
0
ファイル: ProjectConfig.cs プロジェクト: wade/BuildVersioning
 /// <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()
 {
     unchecked
     {
         return(((Name != null ? Name.GetHashCode() : 0) * 397) ^ ProjectId.GetHashCode());
     }
 }
コード例 #2
0
ファイル: Project.cs プロジェクト: zxbe/netcorekit
        public override int GetHashCode()
        {
            int hash = 1;

            if (Key.Length != 0)
            {
                hash ^= Key.GetHashCode();
            }
            if (Id.Length != 0)
            {
                hash ^= Id.GetHashCode();
            }
            if (Title.Length != 0)
            {
                hash ^= Title.GetHashCode();
            }
            if (ProjectId.Length != 0)
            {
                hash ^= ProjectId.GetHashCode();
            }
            if (occurredOn_ != null)
            {
                hash ^= OccurredOn.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
コード例 #3
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (ProjectId.Length != 0)
            {
                hash ^= ProjectId.GetHashCode();
            }
            if (IndexId.Length != 0)
            {
                hash ^= IndexId.GetHashCode();
            }
            if (Kind.Length != 0)
            {
                hash ^= Kind.GetHashCode();
            }
            if (Ancestor != global::Google.Cloud.Datastore.Admin.V1.Index.Types.AncestorMode.Unspecified)
            {
                hash ^= Ancestor.GetHashCode();
            }
            hash ^= properties_.GetHashCode();
            if (State != global::Google.Cloud.Datastore.Admin.V1.Index.Types.State.Unspecified)
            {
                hash ^= State.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
コード例 #4
0
ファイル: Symbols.cs プロジェクト: KirillOsenkov/Codex-1
 public override int GetHashCode()
 {
     unchecked
     {
         return(((ProjectId?.GetHashCode() ?? 0) * 397) ^ (Id.Value?.GetHashCode() ?? 0));
     }
 }
コード例 #5
0
 public override int GetHashCode()
 {
     unchecked
     {
         return(ProjectId != null?ProjectId.GetHashCode() : 0);
     }
 }
コード例 #6
0
 public override int GetHashCode()
 {
     unchecked
     {
         return((ProjectId.GetHashCode() * 397) ^ CategoryId.GetHashCode());
     }
 }
コード例 #7
0
        public override int GetHashCode()
        {
#if (NET462 || NET471)
            return(ProjectId.GetHashCode() ^ (UserId?.GetHashCode() ?? 0));
#else
            return(HashCode.Combine(ProjectId, UserId));
#endif
        }
コード例 #8
0
        public override int GetHashCode()
        {
            var hashCode = -962533896;

            hashCode = hashCode * -1521134295 + ProjectId.GetHashCode();
            hashCode = hashCode * -1521134295 + PlayerId.GetHashCode();
            return(hashCode);
        }
コード例 #9
0
        /// <summary>
        /// Gets the hash code
        /// </summary>
        /// <returns>Hash code</returns>
        public override int GetHashCode()
        {
            // credit: http://stackoverflow.com/a/263416/677735
            unchecked // Overflow is fine, just wrap
            {
                int hash = 41;

                // Suitable nullity checks
                hash = hash * 59 + Id.GetHashCode();

                if (LocalArea != null)
                {
                    hash = hash * 59 + LocalArea.GetHashCode();
                }

                if (EquipmentCount != null)
                {
                    hash = hash * 59 + EquipmentCount.GetHashCode();
                }

                if (EquipmentTypeName != null)
                {
                    hash = hash * 59 + EquipmentTypeName.GetHashCode();
                }

                if (ProjectName != null)
                {
                    hash = hash * 59 + ProjectName.GetHashCode();
                }

                if (PrimaryContact != null)
                {
                    hash = hash * 59 + PrimaryContact.GetHashCode();
                }

                if (Status != null)
                {
                    hash = hash * 59 + Status.GetHashCode();
                }

                if (ProjectId != null)
                {
                    hash = hash * 59 + ProjectId.GetHashCode();
                }

                if (ExpectedStartDate != null)
                {
                    hash = hash * 59 + ExpectedStartDate.GetHashCode();
                }

                if (ExpectedEndDate != null)
                {
                    hash = hash * 59 + ExpectedEndDate.GetHashCode();
                }

                return(hash);
            }
        }
コード例 #10
0
ファイル: TaskSuggestion.cs プロジェクト: cacaxiq/mobileapp
 public override int GetHashCode()
 {
     unchecked
     {
         return((TaskId.GetHashCode() * 397) ^
                (ProjectId.GetHashCode() * 397) ^
                Name.GetHashCode());
     }
 }
コード例 #11
0
 /// <inheritdoc />
 public override int GetHashCode()
 {
     unchecked
     {
         return
             ((ProjectId.GetHashCode() * 397) ^
              (MaskProjectVersion != null ? MaskProjectVersion.GetHashCode() : 0));
     }
 }
コード例 #12
0
 public override int GetHashCode()
 {
     unchecked
     {
         var result = (ProjectId != null ? ProjectId.GetHashCode() : 0);
         result = (result * 397) ^ (TypeName != null ? TypeName.GetHashCode() : 0);
         result = (result * 397) ^ Explicitly.GetHashCode();
         return(result);
     }
 }
コード例 #13
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = (Deadline != null ? Deadline.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (ProjectId != null ? ProjectId.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Title != null ? Title.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Priority != null ? Priority.GetHashCode() : 0);
         return(hashCode);
     }
 }
コード例 #14
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = AssigneeId.GetHashCode();
         hashCode = (hashCode * 397) ^ ProjectId.GetHashCode();
         hashCode = (hashCode * 397) ^ ProjectGroupId.GetHashCode();
         hashCode = (hashCode * 397) ^ LoggedTimeId.GetHashCode();
         return(hashCode);
     }
 }
コード例 #15
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = ProjectId?.GetHashCode() ?? 0;
         hashCode = (hashCode * 397) ^ (ProjectName?.GetHashCode() ?? 0);
         hashCode = (hashCode * 397) ^ (StepName?.GetHashCode() ?? 0);
         hashCode = (hashCode * 397) ^ (Status?.GetHashCode() ?? 0);
         return(hashCode);
     }
 }
コード例 #16
0
 public override int GetHashCode()
 {
     unchecked
     {
         int hashCode = base.GetHashCode();
         hashCode = (hashCode * 397) ^ ProjectId.GetHashCode();
         hashCode = (hashCode * 397) ^ ExperimentId.GetHashCode();
         hashCode = (hashCode * 397) ^ FileId.GetHashCode();
         hashCode = (hashCode * 397) ^ RunStartTime.GetHashCode();
         return(hashCode);
     }
 }
コード例 #17
0
 public override int GetHashCode()
 {
     unchecked
     {
         // Don't call base.GetHashCode so that we don't try to include Id or ParentId,
         // which are different per-instance and we're trying to behave like a value type
         int result = explicitly.GetHashCode();
         result = (result * 397) ^ (TypeName != null ? TypeName.GetHashCode() : 0);
         result = (result * 397) ^ (MethodName != null ? MethodName.GetHashCode() : 0);
         result = (result * 397) ^ (ProjectId != null ? ProjectId.GetHashCode() : 0);
         return(result);
     }
 }
コード例 #18
0
ファイル: Minglog.cs プロジェクト: Zero-ly/Demos-AOP-Logger
        public override int GetHashCode()
        {
            int hash = 1;

            if (TimeStamp != 0L)
            {
                hash ^= TimeStamp.GetHashCode();
            }
            if (HostName.Length != 0)
            {
                hash ^= HostName.GetHashCode();
            }
            if (ServiceType != 0)
            {
                hash ^= ServiceType.GetHashCode();
            }
            if (Developer != 0)
            {
                hash ^= Developer.GetHashCode();
            }
            if (ClientIp.Length != 0)
            {
                hash ^= ClientIp.GetHashCode();
            }
            if (Stack.Length != 0)
            {
                hash ^= Stack.GetHashCode();
            }
            if (Message.Length != 0)
            {
                hash ^= Message.GetHashCode();
            }
            if (Action.Length != 0)
            {
                hash ^= Action.GetHashCode();
            }
            if (AccountId.Length != 0)
            {
                hash ^= AccountId.GetHashCode();
            }
            if (ProjectId.Length != 0)
            {
                hash ^= ProjectId.GetHashCode();
            }
            if (Level != 0)
            {
                hash ^= Level.GetHashCode();
            }
            hash ^= Extras.GetHashCode();
            return(hash);
        }
コード例 #19
0
 public override int GetHashCode()
 {
     unchecked
     {
         int hashCode = (ServerUrl != null ? ServerUrl.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ ProjectId.GetHashCode();
         hashCode = (hashCode * 397) ^ ExperimentId.GetHashCode();
         hashCode = (hashCode * 397) ^ FileId.GetHashCode();
         hashCode = (hashCode * 397) ^ (Path != null ? Path.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Username != null ? Username.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ RunStartTime.GetHashCode();
         return(hashCode);
     }
 }
コード例 #20
0
 public override int GetHashCode()
 {
     unchecked
     {
         // Don't include base.GetHashCode, as RemoteTask.GetHashCode includes RemoteTask.Id
         // in the calculation, and this is a new guid generated for each new instance.
         // This would mean two instances that return true from Equals (i.e. value objects)
         // would have different hash codes
         var result = ProjectId.GetHashCode();
         result = (result * 397) ^ TypeName.GetHashCode();
         result = (result * 397) ^ MethodName.GetHashCode();
         result = (result * 397) ^ TheoryName.GetHashCode();
         return(result);
     }
 }
コード例 #21
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = (ProjectName != null ? ProjectName.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (AssigneeName != null ? AssigneeName.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (ActivityName != null ? ActivityName.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (int)ActivityStatus;
         hashCode = (hashCode * 397) ^ (ActivityType != null ? ActivityType.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ EstimatedTime.GetHashCode();
         hashCode = (hashCode * 397) ^ LoggedTime.GetHashCode();
         hashCode = (hashCode * 397) ^ ProjectId.GetHashCode();
         hashCode = (hashCode * 397) ^ ActivityId.GetHashCode();
         hashCode = (hashCode * 397) ^ AssigneeId.GetHashCode();
         return(hashCode);
     }
 }
コード例 #22
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (ProjectId.Length != 0)
            {
                hash ^= ProjectId.GetHashCode();
            }
            if (DatasetId.Length != 0)
            {
                hash ^= DatasetId.GetHashCode();
            }
            if (TableId.Length != 0)
            {
                hash ^= TableId.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
コード例 #23
0
 public override int GetHashCode()
 {
     return(Hash.Combine(_source.GetHashCode(), Hash.Combine(_projectIdOpt == null ? 1 : _projectIdOpt.GetHashCode(), base.GetHashCode())));
 }
コード例 #24
0
 /// <summary>
 /// Returns the hash code.
 /// </summary>
 public override int GetHashCode()
 {
     return(Sha.GetHashCode() ^ ProjectId.GetHashCode() ^ UserId.GetHashCode());
 }
コード例 #25
0
 public override int GetHashCode()
 {
     return(Hash.Combine(HasInternalsAccess, ProjectId.GetHashCode()));
 }
コード例 #26
0
 public override int GetHashCode()
 {
     return((CategoryId.GetHashCode() * 397) ^ ProjectId.GetHashCode());
 }
コード例 #27
0
 public override int GetHashCode()
 {
     return(ProjectId.GetHashCode());
 }
コード例 #28
0
ファイル: CodeCellId.cs プロジェクト: pietervp/workbooks-1
 public override int GetHashCode()
 => Hash.Combine(ProjectId.GetHashCode(), Id.GetHashCode());
コード例 #29
0
 public override int GetHashCode()
 {
     return(ProjectId.GetHashCode() + MilestoneDate.GetHashCode());
 }
コード例 #30
0
 public override int GetHashCode()
 => Hash.Combine(SymbolKeyData, ProjectId.GetHashCode());