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)

Initializes a new instance of the LexicalScopeCollection class.

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 as 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 has been 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