logging-log4net
logging-log4net copied to clipboard
Add support for nullable annotations
Public classes and interfaces should get nullable annotations so that callers will be warned when passing null values.
List of breaking changes
#129 - Part 4 of nullable and modernization
- interface
log4net.Appender.AppenderCollection.IAppenderCollectionEnumeratorwas replaced byIEnumerator<IAppender> - the signature of
log4net.Appender.AppenderCollectionAddandRemovechanged (for implementingICollection<IAppender>)- from
public virtual int Add(IAppender item)topublic virtual void Add(IAppender item) - from
public virtual void Remove(IAppender item)topublic virtual bool Remove(IAppender item)
- from
log4net.Appender.MemoryAppender.m_eventsList(protected field) was changed fromArrayListtoList<LoggingEvent>- for getting
m_eventsList.SyncRootyou need to cast it:((ICollection)m_eventsList).SyncRoot
- for getting