Table of Contents

Class CilLocalVariableCollection

Namespace
AsmResolver.DotNet.Code.Cil
Assembly
AsmResolver.DotNet.dll

Represents a collection of local variables stored in a CIL method body.

public class CilLocalVariableCollection : Collection<CilLocalVariable>, IList<CilLocalVariable>, ICollection<CilLocalVariable>, IReadOnlyList<CilLocalVariable>, IReadOnlyCollection<CilLocalVariable>, IEnumerable<CilLocalVariable>, IList, ICollection, IEnumerable
Inheritance
CilLocalVariableCollection
Implements
Inherited Members

Methods

ClearItems()

Removes all elements from the Collection<T>.

protected override void ClearItems()

InsertItem(int, CilLocalVariable)

Inserts an element into the Collection<T> at the specified index.

protected override void InsertItem(int index, CilLocalVariable item)

Parameters

index int

The zero-based index at which item should be inserted.

item CilLocalVariable

The object to insert. The value can be null for reference types.

Exceptions

ArgumentOutOfRangeException

index is less than zero.

-or-

index is greater than Count.

RemoveItem(int)

Removes the element at the specified index of the Collection<T>.

protected override void RemoveItem(int index)

Parameters

index int

The zero-based index of the element to remove.

Exceptions

ArgumentOutOfRangeException

index is less than zero.

-or-

index is equal to or greater than Count.

SetItem(int, CilLocalVariable)

Replaces the element at the specified index.

protected override void SetItem(int index, CilLocalVariable item)

Parameters

index int

The zero-based index of the element to replace.

item CilLocalVariable

The new value for the element at the specified index. The value can be null for reference types.

Exceptions

ArgumentOutOfRangeException

index is less than zero.

-or-

index is greater than Count.