Table of Contents

Class ILVariableCollection

Namespace
ICSharpCode.Decompiler.IL
Assembly
ICSharpCode.Decompiler.dll

The collection of variables in a ILFunction.

public class ILVariableCollection : ICollection<ILVariable>, IReadOnlyList<ILVariable>, IReadOnlyCollection<ILVariable>, IEnumerable<ILVariable>, IEnumerable
Inheritance
ILVariableCollection
Implements
Inherited Members

Properties

Count

public int Count { get; }

Property Value

int

this[int]

Gets a variable given its IndexInFunction.

public ILVariable this[int index] { get; }

Parameters

index int

Property Value

ILVariable

Methods

Add(ILVariable)

public bool Add(ILVariable item)

Parameters

item ILVariable

Returns

bool

Clear()

public void Clear()

Contains(ILVariable)

public bool Contains(ILVariable item)

Parameters

item ILVariable

Returns

bool

CopyTo(ILVariable[], int)

public void CopyTo(ILVariable[] array, int arrayIndex)

Parameters

array ILVariable[]
arrayIndex int

GetEnumerator()

public List<ILVariable>.Enumerator GetEnumerator()

Returns

List<ILVariable>.Enumerator

Remove(ILVariable)

public bool Remove(ILVariable item)

Parameters

item ILVariable

Returns

bool

RemoveDead()

Remove variables that have StoreCount == LoadCount == AddressCount == 0.

public void RemoveDead()