Пример #1
0
        public bool Equals(APlugin other)
        {
            if (other is null)
            {
                return(false);
            }

            if (this == other)
            {
                return(true);
            }

            if (GetType() != other.GetType())
            {
                return(false);
            }

            return(Infos.Equals(other.Infos) &&
                   Type == other.Type &&
                   OsAuthorized == other.OsAuthorized &&
                   Heartbeat == other.Heartbeat &&
                   AdministratorRights.Equals(other.AdministratorRights) &&
                   AdministratorUsername.Equals(other.AdministratorUsername) &&
                   Activated == other.Activated);
        }
Пример #2
0
 /// <summary>
 /// Vérifie si cette Music est égale à l'autre Music
 /// </summary>
 /// <param name="other"> L'autre musique qui sera comparé à cette Music </param>
 /// <returns>true si égaux, false sinon </returns>
 public bool Equals(IMusic other)
 => (Title.Equals(other.Title) && Artist.Equals(other.Artist) && Date.Equals(other.Date) && Genre.Equals(other.Genre) && Infos.Equals(other.Infos) && Audio.ToString().Equals(other.Audio.ToString()) && Video.Equals(other.Video));