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

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

📋 Pull Request Information

Original PR: https://github.com/xoofx/markdig/pull/425
Author: @lellid
Created: 4/19/2020
Status: Merged
Merged: 4/22/2020
Merged by: @xoofx

Base: masterHead: ContainerReadonlyList


📝 Commits (1)

  • 920ab6c Add IReadonlyList interface to ContainerBlock to unify and simplify enumeration

📊 Changes

1 file changed (+1 additions, -1 deletions)

View changed files

📝 src/Markdig/Syntax/ContainerBlock.cs (+1 -1)

📄 Description

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.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/xoofx/markdig/pull/425 **Author:** [@lellid](https://github.com/lellid) **Created:** 4/19/2020 **Status:** ✅ Merged **Merged:** 4/22/2020 **Merged by:** [@xoofx](https://github.com/xoofx) **Base:** `master` ← **Head:** `ContainerReadonlyList` --- ### 📝 Commits (1) - [`920ab6c`](https://github.com/xoofx/markdig/commit/920ab6cb60f26728ab723ebc560757cc33ca8d07) Add IReadonlyList interface to ContainerBlock to unify and simplify enumeration ### 📊 Changes **1 file changed** (+1 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `src/Markdig/Syntax/ContainerBlock.cs` (+1 -1) </details> ### 📄 Description 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. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
claunia added the pull-request label 2026-01-29 14:48:36 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/markdig#1016