Closed grokys closed 5 months ago
GetChildren is typed as an IEnumerable<T> but we were casting it to an IReadOnlyList<T>. This works for most cases, but we're not respecting the API.
GetChildren
IEnumerable<T>
IReadOnlyList<T>
This PR changes the code to handle the case where an actual enumerable is returned.
GetChildren
is typed as anIEnumerable<T>
but we were casting it to anIReadOnlyList<T>
. This works for most cases, but we're not respecting the API.This PR changes the code to handle the case where an actual enumerable is returned.