Wrapper for il2cpp enumerator so that it actually extends the normal System enumerator
public class Il2CppEnumerator<T> :
System.Collections.Generic.IEnumerator<T>,
System.Collections.IEnumerator,
System.IDisposable
T
Inheritance System.Object Il2CppEnumerator
Implements System.Collections.Generic.IEnumerator<T>, System.Collections.IEnumerator, System.IDisposable
Construction a wrapper for an il2cpp enumerator
public Il2CppEnumerator(IEnumerable<T> enumerable);
enumerable Il2CppSystem.Collections.Generic.IEnumerable
Construction a wrapper for an il2cpp enumerator
public Il2CppEnumerator(IEnumerator<T> enumerator);
enumerator Il2CppSystem.Collections.Generic.IEnumerator
Gets the element in the collection at the current position of the enumerator.
public T Current { get; }
The internal il2cpp enumerator being wrapped
public IEnumerator<T> Enumerator { get; }
Il2CppSystem.Collections.Generic.IEnumerator
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public void Dispose();
Implements Dispose()
Advances the enumerator to the next element of the collection.
public bool MoveNext();
Implements MoveNext()
System.Boolean
true if the enumerator was successfully advanced to the next element; false if the enumerator has passed the end of the collection.
System.InvalidOperationException
The collection was modified after the enumerator was created.
Sets the enumerator to its initial position, which is before the first element in the collection.
public void Reset();
Implements Reset()
System.InvalidOperationException
The collection was modified after the enumerator was created.
Wraps an il2cpp enumerable
public static BTD_Mod_Helper.Api.Helpers.Il2CppEnumerator<T> implicit operator Il2CppEnumerator<T>(IEnumerable<T> enumerator);
enumerator Il2CppSystem.Collections.Generic.IEnumerable
BTD_Mod_Helper.Api.Helpers.Il2CppEnumerator<T>
Wraps an il2cpp enumerator
public static BTD_Mod_Helper.Api.Helpers.Il2CppEnumerator<T> implicit operator Il2CppEnumerator<T>(IEnumerator<T> enumerator);
enumerator Il2CppSystem.Collections.Generic.IEnumerator
BTD_Mod_Helper.Api.Helpers.Il2CppEnumerator<T>
Gets the current element in the collection.
object System.Collections.IEnumerator.Current { get; }
Implements Current