Beispiel #1
0
        /// <summary>
        /// Determines whether the specified object is equal to the current Discord entity.
        /// </summary>
        /// <param name="obj">The other object to check.</param>
        public override bool Equals(object obj)
        {
            DiscordIdEntity other = obj as DiscordIdEntity;

            if (ReferenceEquals(other, null))
            {
                return(false);
            }
            else
            {
                return(Equals(other));
            }
        }
Beispiel #2
0
 /// <summary>
 /// Determines whether the specified <see cref="DiscordIdEntity"/> is equal to the current entity.
 /// </summary>
 /// <param name="other">The other <see cref="DiscordIdEntity"/> to check.</param>
 public bool Equals(DiscordIdEntity other)
 {
     return(Id == other?.Id);
 }