Yaircc.Net.IRC.Connection.Equals C# (CSharp) Method

Equals() public method

Determines whether the specified object is equal to the current object.
public Equals ( object obj ) : bool
obj object The object to compare with the current object.
return bool
        public override bool Equals(object obj)
        {
            if (obj is Connection)
            {
                return this.ToString().Equals((obj as Connection).ToString());
            }
            else
            {
                return base.Equals(obj);
            }
        }