示例#1
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = (Health != null ? Health.GetHashCode() : 0);
         //hashCode = (hashCode * 397) ^ (History != null ? History.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (ObservedAt != null ? ObservedAt.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (OperationState != null ? OperationState.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (ReconciledAt != null ? ReconciledAt.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Resources != null ? Resources.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (SourceType != null ? SourceType.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Summary != null ? Summary.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (SyncStatus != null ? SyncStatus.GetHashCode() : 0);
         return(hashCode);
     }
 }
        public override int GetHashCode()
        {
            int hashcode = 157;

            unchecked {
                hashcode = (hashcode * 397) + Status.GetHashCode();
                if (__isset.operationState)
                {
                    hashcode = (hashcode * 397) + OperationState.GetHashCode();
                }
                if (__isset.sqlState)
                {
                    hashcode = (hashcode * 397) + SqlState.GetHashCode();
                }
                if (__isset.errorCode)
                {
                    hashcode = (hashcode * 397) + ErrorCode.GetHashCode();
                }
                if (__isset.errorMessage)
                {
                    hashcode = (hashcode * 397) + ErrorMessage.GetHashCode();
                }
                if (__isset.taskStatus)
                {
                    hashcode = (hashcode * 397) + TaskStatus.GetHashCode();
                }
                if (__isset.operationStarted)
                {
                    hashcode = (hashcode * 397) + OperationStarted.GetHashCode();
                }
                if (__isset.operationCompleted)
                {
                    hashcode = (hashcode * 397) + OperationCompleted.GetHashCode();
                }
                if (__isset.hasResultSet)
                {
                    hashcode = (hashcode * 397) + HasResultSet.GetHashCode();
                }
                if (__isset.progressUpdateResponse)
                {
                    hashcode = (hashcode * 397) + ProgressUpdateResponse.GetHashCode();
                }
            }
            return(hashcode);
        }