public void AddRange(IEnumerable <LogEvent> logEvents) { if (logEvents == null || !logEvents.Any()) { return; } LogEvents.AddRange(logEvents.ToList()); }