Ejemplo n.º 1
0
    /// <summary>
    /// Answers whether or not this <c>Actor</c> is equal to <c>other</c>.
    /// </summary>
    /// <param name="other">The <c>object</c> to which this <c>Actor</c> is compared</param>
    /// <returns><c>true</c> if the two objects are of same type and has the same <c>address</c>. <c>false</c> otherwise.</returns>
    public override bool Equals(object?other)
    {
        if (other == null || other.GetType() != GetType())
        {
            return(false);
        }

        return(Address.Equals(((Actor)other).LifeCycle.Address));
    }