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.IAppenderCollectionEnumerator
was replaced byIEnumerator<IAppender>
- the signature of
log4net.Appender.AppenderCollection
Add
andRemove
changed (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 fromArrayList
toList<LoggingEvent>
- for getting
m_eventsList.SyncRoot
you need to cast it:((ICollection)m_eventsList).SyncRoot
- for getting