In This Article

LexicalScopeCollection Class

Represents a collection of lexical scopes.

public class LexicalScopeCollection : SimpleObservableCollection<LexicalScopeBase>, ILexicalScopeCollection
Inheritance:
object Collection<LexicalScopeBase> SimpleObservableCollection<LexicalScopeBase> object
Implements:
ILexicalScopeCollection

Constructors

LexicalScopeCollection(ILexicalState?)

Represents a collection of lexical scopes.

public LexicalScopeCollection(ILexicalState? parentLexicalState)
Parameter Type Description
parentLexicalState ILexicalState

The parent ILexicalState that should be assigned to children, if any.

Methods

OnItemAdded(int, LexicalScopeBase)

Called after an item has been added into the collection.

protected override void OnItemAdded(int index, LexicalScopeBase value)
Parameter Type Description
index int

The index at which the item is added.

value LexicalScopeBase

The item that is added.

OnItemRemoving(int, LexicalScopeBase)

Called before an item is removed from the collection.

protected override void OnItemRemoving(int index, LexicalScopeBase value)
Parameter Type Description
index int

The index at which the item is removed.

value LexicalScopeBase

The item that is removed.

Inherited Members

Extension Methods