DDay.iCal.iCalDateTime.Equals C# (CSharp) Method

Equals() public method

public Equals ( object obj ) : bool
obj object
return bool
        public override bool Equals(object obj)
        {
            if (obj is IDateTime)
            {
                this.AssociateWith((IDateTime)obj);
                return ((IDateTime)obj).UTC.Equals(UTC);
            }
            else if (obj is DateTime)
            {
                iCalDateTime dt = new iCalDateTime((DateTime)obj);
                this.AssociateWith(dt);
                return object.Equals(dt.UTC, UTC);
            }
            return false;
        }