public virtual bool Equals(ILogWriter other) { if (other.IsCollection) { return other.Count==0 && this == other.First(); } else return this == other; }