mirror of
https://github.com/BepInEx/BepInEx.git
synced 2026-10-20 01:46:13 +00:00
Merge pull request #338 from simonkellly/coroutines
Support returning Il2Cpp IEnumerators which had been compiler generated
This commit is contained in:
1 file changed
+1
@@ -35,6 +35,7 @@ namespace BepInEx.IL2CPP.Utils.Collections
|
||||
|
||||
public Object Current => enumerator.Current switch
|
||||
{
|
||||
Il2CppIEnumerator i => i.Cast<Object>(),
|
||||
IEnumerator e => new Il2CppManagedEnumerator(e),
|
||||
Object oo => oo,
|
||||
{ } obj => ManagedToIl2CppObject(obj),
|
||||
|
||||
Reference in new issue
Block a user