public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = Name?.GetHashCode() ?? 0;
         hashCode = (hashCode * 397) ^ (SourceLang?.GetHashCode() ?? 0);
         hashCode = (hashCode * 397) ^ (DestinationLang?.GetHashCode() ?? 0);
         hashCode = (hashCode * 397) ^ (Text?.GetHashCode() ?? 0);
         return(hashCode);
     }
 }
Пример #2
0
        public void SetEnums()
        {
            switch (calcScenario)
            {
            case CalcScenario.CalculateLaunch1:
                calcScenario = CalcScenario.CalculateLaunch1;
                break;

            case CalcScenario.BackwardFlush2:
                calcScenario = CalcScenario.BackwardFlush2;
                break;
            }
            switch (contentType)
            {
            case ContentType.feature:
                contentType = ContentType.feature;
                break;

            case ContentType.series:
                contentType = ContentType.series;
                break;
            }
            switch (sourceLang)
            {
            case SourceLang.English:
                sourceLang = SourceLang.English;
                break;

            case SourceLang.Other:
                sourceLang = SourceLang.Other;
                break;
            }
            switch (mEQCWorkflow)
            {
            case MEQCWorkflow.WF0:
                mEQCWorkflow = MEQCWorkflow.WF0;
                break;

            case MEQCWorkflow.WF1:
                mEQCWorkflow = MEQCWorkflow.WF1;
                break;

            case MEQCWorkflow.NoWorkflow:
                mEQCWorkflow = MEQCWorkflow.NoWorkflow;
                break;
            }
            switch (qCType)
            {
            case QCType.Premix:
                qCType = QCType.Premix;
                break;

            case QCType.Postmix:
                qCType = QCType.Postmix;
                break;

            case QCType.CQC:
                qCType = QCType.CQC;
                break;
            }
        }