Skip to content

Commit 5e68bb2

Browse files
committed
Add non-boxing enumerator for HtmlNodeCollection
1 parent 8efd5da commit 5e68bb2

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/HtmlAgilityPack.Shared/HtmlNodeCollection.cs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,15 @@ public void CopyTo(HtmlNode[] array, int arrayIndex)
168168
_items.CopyTo(array, arrayIndex);
169169
}
170170

171+
/// <summary>
172+
/// Get Enumerator
173+
/// </summary>
174+
/// <returns></returns>
175+
public List<HtmlNode>.Enumerator GetEnumerator()
176+
{
177+
return _items.GetEnumerator();
178+
}
179+
171180
/// <summary>
172181
/// Get Enumerator
173182
/// </summary>

0 commit comments

Comments
 (0)