Ejemplo n.º 1
0
    public Mentor MentorByName(MentorName name)
    {
        switch (name)
        {
        case MentorName.EMPRESARIA:
            return(empresaria);

        case MentorName.ENGENHARIA1:
            return(engenharia1);

        case MentorName.ENGENHARIA2:
            return(engenharia2);

        case MentorName.HUMANAS:
            return(humanas);

        case MentorName.NEGOCIOS:
            return(negocios);

        case MentorName.SAUDE:
            return(saude);

        case MentorName.MESTRE:
            return(mestre);

        default:
            throw new System.ArgumentException("Value does not exists in MentorName", name.ToString());
        }
    }
Ejemplo n.º 2
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (Id.Length != 0)
            {
                hash ^= Id.GetHashCode();
            }
            hash ^= professionRanks_.GetHashCode();
            if (Name.Length != 0)
            {
                hash ^= Name.GetHashCode();
            }
            if (Desc.Length != 0)
            {
                hash ^= Desc.GetHashCode();
            }
            if (Icon.Length != 0)
            {
                hash ^= Icon.GetHashCode();
            }
            if (MentorName.Length != 0)
            {
                hash ^= MentorName.GetHashCode();
            }
            if (MentorDesc.Length != 0)
            {
                hash ^= MentorDesc.GetHashCode();
            }
            if (MentorIcon.Length != 0)
            {
                hash ^= MentorIcon.GetHashCode();
            }
            if (ScreenBackground.Length != 0)
            {
                hash ^= ScreenBackground.GetHashCode();
            }
            if (IconStamp.Length != 0)
            {
                hash ^= IconStamp.GetHashCode();
            }
            if (ScreenBackgroundHeader.Length != 0)
            {
                hash ^= ScreenBackgroundHeader.GetHashCode();
            }
            if (ShowComingSoon != false)
            {
                hash ^= ShowComingSoon.GetHashCode();
            }
            if (IconHighlighted.Length != 0)
            {
                hash ^= IconHighlighted.GetHashCode();
            }
            if (ShowProfessionRankMeter != false)
            {
                hash ^= ShowProfessionRankMeter.GetHashCode();
            }
            if (ProfessionActivatedSfx.Length != 0)
            {
                hash ^= ProfessionActivatedSfx.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }