Closed yaakov-h closed 1 year ago
This comes from the case discussed in Teams.
When a foreach-able object is invoked via a subclass, we don't necessarily locate the correct GetEnumerator method. This PR fixes EnumerableTypeUtils.GetElementType to check the base classes as well.
GetEnumerator
EnumerableTypeUtils.GetElementType
Tracked by WI00633703.
This comes from the case discussed in Teams.
When a foreach-able object is invoked via a subclass, we don't necessarily locate the correct
GetEnumerator
method. This PR fixesEnumerableTypeUtils.GetElementType
to check the base classes as well.Tracked by WI00633703.