コード例 #1
0
        public override int GetHashCode()
        {
            int hashcode = 157;

            unchecked {
                if (__isset.parentID)
                {
                    hashcode = (hashcode * 397) + ParentID.GetHashCode();
                }
                if (__isset.level)
                {
                    hashcode = (hashcode * 397) + Level.GetHashCode();
                }
                if (__isset.children)
                {
                    hashcode = (hashcode * 397) + TCollections.GetHashCode(Children);
                }
                if (__isset.smallset)
                {
                    hashcode = (hashcode * 397) + Smallset.GetHashCode();
                }
                if (__isset.splitinfo)
                {
                    hashcode = (hashcode * 397) + Splitinfo.GetHashCode();
                }
            }
            return(hashcode);
        }
コード例 #2
0
ファイル: AuditLog.cs プロジェクト: kapiya/Warewolf
        public override int GetHashCode()
        {
            unchecked
            {
                var hashCode = 1561563491;

                hashCode = (hashCode * 157) + Id.GetHashCode();
                hashCode = (hashCode * 157) + WorkflowID.GetHashCode();
                hashCode = (hashCode * 157) + ExecutionID.GetHashCode();
                hashCode = (hashCode * 157) + ExecutionOrigin.GetHashCode();
                hashCode = (hashCode * 157) + IsSubExecution.GetHashCode();
                hashCode = (hashCode * 157) + IsRemoteWorkflow.GetHashCode();
                hashCode = (hashCode * 157) + WorkflowName.GetHashCode();
                hashCode = (hashCode * 157) + AuditType.GetHashCode();
                hashCode = (hashCode * 157) + PreviousActivity.GetHashCode();
                hashCode = (hashCode * 157) + PreviousActivityType.GetHashCode();
                hashCode = (hashCode * 157) + PreviousActivityId.GetHashCode();
                hashCode = (hashCode * 157) + NextActivity.GetHashCode();
                hashCode = (hashCode * 157) + NextActivityType.GetHashCode();
                hashCode = (hashCode * 157) + NextActivityId.GetHashCode();
                hashCode = (hashCode * 157) + ServerID.GetHashCode();
                hashCode = (hashCode * 157) + ParentID.GetHashCode();
                hashCode = (hashCode * 157) + ExecutingUser.GetHashCode();
                hashCode = (hashCode * 157) + ExecutionOriginDescription.GetHashCode();
                hashCode = (hashCode * 157) + ExecutionToken.GetHashCode();
                hashCode = (hashCode * 157) + AdditionalDetail.GetHashCode();
                hashCode = (hashCode * 157) + Environment.GetHashCode();
                hashCode = (hashCode * 157) + AuditDate.GetHashCode();

                return(hashCode);
            }
        }
コード例 #3
0
        public override int GetHashCode()
        {
            int hashcode = 157;

            unchecked {
                if (__isset.metaID)
                {
                    hashcode = (hashcode * 397) + MetaID.GetHashCode();
                }
                if (__isset.parentID)
                {
                    hashcode = (hashcode * 397) + ParentID.GetHashCode();
                }
                if (__isset.childCount)
                {
                    hashcode = (hashcode * 397) + ChildCount.GetHashCode();
                }
                if (__isset.isSmallSet)
                {
                    hashcode = (hashcode * 397) + IsSmallSet.GetHashCode();
                }
            }
            return(hashcode);
        }
コード例 #4
0
 public override int GetHashCode()
 {
     return(Name.GetHashCode() + ParentID.GetHashCode());
 }