Struct InstructionCollection<T>.Enumerator
- Namespace
- ICSharpCode.Decompiler.IL
- Assembly
- ICSharpCode.Decompiler.dll
Custom enumerator for InstructionCollection. Unlike List{T}.Enumerator, this enumerator allows replacing an item during the enumeration. Adding/removing items from the collection still is invalid (however, such invalid actions are only detected in debug builds).
Warning: even though this is a struct, it is invalid to copy: the number of constructor calls must match the number of dispose calls.
public struct InstructionCollection<T>.Enumerator : IEnumerator<T>, IEnumerator, IDisposable
- Implements
-
IEnumerator<T>
- Inherited Members
Constructors
Enumerator(InstructionCollection<T>)
public Enumerator(InstructionCollection<T> col)
Parameters
col
InstructionCollection<T>
Properties
Current
public T Current { get; }
Property Value
- T
Methods
Dispose()
public void Dispose()
MoveNext()
public bool MoveNext()