CsWinRT icon indicating copy to clipboard operation
CsWinRT copied to clipboard

TestIterator fails due to IEnumerator helper type not found

Open manodasanW opened this issue 2 years ago • 1 comments

System.InvalidOperationException : Target type is not a projected type: System.Collections.IEnumerator.

Stack Trace:  TypeExtensions.GetHelperType(Type type) line 103 IDynamicInterfaceCastable.GetInterfaceImplementation(RuntimeTypeHandle interfaceType) line 144 IEnumerator.MoveNext() CustomIteratorTest.MoveNext() line 1916 TestCSharp.TestIterator() line 2595

manodasanW avatar Mar 16 '23 07:03 manodasanW

Need to evaluate whether this needs to be converted to an IDIC interface which would be an API surface change: https://github.com/microsoft/CsWinRT/blob/86d7976c81c32c6a1fd8b446ee8667759be53543/src/WinRT.Runtime/Projections/IEnumerable.net5.cs#L260

manodasanW avatar Mar 16 '23 07:03 manodasanW