Skip to content

Commit

Permalink
#124 restored IAppenderCollectionEnumerator
Browse files Browse the repository at this point in the history
- added breaking changes to release notes
  • Loading branch information
FreeAndNil committed Apr 3, 2024
1 parent 3db7a77 commit 4af5332
Show file tree
Hide file tree
Showing 2 changed files with 2,310 additions and 2,170 deletions.
11 changes: 10 additions & 1 deletion src/log4net/Appender/AppenderCollection.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,13 @@ namespace log4net.Appender
/// <author>Nicko Cadell</author>
public class AppenderCollection : IList, ICloneable, ICollection<IAppender>
{
/// <summary>
/// Supports type-safe iteration over a <see cref="AppenderCollection"/>.
/// </summary>
[Obsolete("Use IEnumerator<IAppender> instead of AppenderCollection.IAppenderCollectionEnumerator")]
public interface IAppenderCollectionEnumerator : IEnumerator<IAppender>
{ }

private const int DEFAULT_CAPACITY = 16;

private IAppender[] m_array;
Expand Down Expand Up @@ -577,7 +584,9 @@ IEnumerator IEnumerable.GetEnumerator()
/// Supports simple iteration over a <see cref="AppenderCollection"/>.
/// </summary>
/// <exclude/>
private sealed class Enumerator : IEnumerator<IAppender>
#pragma warning disable CS0618 // Type or member is obsolete
private sealed class Enumerator : IAppenderCollectionEnumerator
#pragma warning restore CS0618 // Type or member is obsolete
{
private readonly AppenderCollection m_collection;
private int m_index;
Expand Down
Loading

0 comments on commit 4af5332

Please sign in to comment.