Ejemplo n.º 1
0
        private void EnsureExternalObjects()
        {
            string sExternalState = !string.IsNullOrEmpty(this.ExternalState) ? this.ExternalState : ObjectBase.EMPTY_EXTERNAL_STATE;

            if (this.Type == GROUP_TYPE_GROUP_T)
            {
                m_gtes = LineSerializeHelper.StringToObject <GroupTournamentExternalState>(sExternalState);
            }
            else if (this.Type == GROUP_TYPE_SPORT)
            {
                m_gses = LineSerializeHelper.StringToObject <GroupSportExternalState>(sExternalState);
            }
        }
Ejemplo n.º 2
0
        public override bool Equals(object obj)
        {
            GroupTournamentExternalState gtes = obj as GroupTournamentExternalState;

            return(gtes != null && gtes.GetHashCode() == this.GetHashCode());
        }