[PR #425] Add IReadOnlyList interface to ContainerBlock to unify and simplify e… #1021

Closed
opened 2026-01-29 14:48:39 +00:00 by claunia · 0 comments
Owner

Original Pull Request: https://github.com/xoofx/markdig/pull/425

State: closed
Merged: Yes


Problem: ContainerBlock implements the IList<Block> interface, but this interface does not contain the IReadOnlyList<Block>

In order to simplify and unify the enumeration of child items, add the IReadOnlyList<Block> interface to ContainerBlock. ContainerBlock already contains the neccessary implementations of the IReadOnlyList<Block> interface.

**Original Pull Request:** https://github.com/xoofx/markdig/pull/425 **State:** closed **Merged:** Yes --- Problem: `ContainerBlock` implements the `IList<Block>` interface, but this interface does not contain the `IReadOnlyList<Block>` In order to simplify and unify the enumeration of child items, add the `IReadOnlyList<Block>` interface to `ContainerBlock`. `ContainerBlock` already contains the neccessary implementations of the `IReadOnlyList<Block>` interface.
claunia added the pull-request label 2026-01-29 14:48:39 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/markdig#1021