Skip to content

Commit da09054

Browse files
Merge pull request #555 from lahma/non-boxing-enumerator
Add non-boxing enumerator for HtmlNodeCollection
2 parents fc7fa73 + 5e68bb2 commit da09054

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
@@ -174,6 +174,15 @@ public void CopyTo(HtmlNode[] array, int arrayIndex)
174174
_items.CopyTo(array, arrayIndex);
175175
}
176176

177+
/// <summary>
178+
/// Get Enumerator
179+
/// </summary>
180+
/// <returns></returns>
181+
public List<HtmlNode>.Enumerator GetEnumerator()
182+
{
183+
return _items.GetEnumerator();
184+
}
185+
177186
/// <summary>
178187
/// Get Enumerator
179188
/// </summary>

0 commit comments

Comments
 (0)