Exemplo 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);
            }
        }
Exemplo n.º 2
0
        public override bool Equals(object obj)
        {
            GroupSportExternalState gses = obj as GroupSportExternalState;

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