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;
}