Table of Contents

Class MethodSemanticsCollection

Namespace
AsmResolver.DotNet.Collections
Assembly
AsmResolver.DotNet.dll

Provides an implementation of a list of method semantics that are associated to a property or event.

public class MethodSemanticsCollection : MemberCollection<IHasSemantics, MethodSemantics>, IList<MethodSemantics>, ICollection<MethodSemantics>, IEnumerable<MethodSemantics>, IEnumerable
Inheritance
MethodSemanticsCollection
Implements
Inherited Members

Constructors

MethodSemanticsCollection(IHasSemantics)

Creates a new instance of the MethodSemanticsCollection class.

public MethodSemanticsCollection(IHasSemantics owner)

Parameters

owner IHasSemantics

The owner of the collection.

MethodSemanticsCollection(IHasSemantics, int)

Creates a new instance of the MethodSemanticsCollection class.

public MethodSemanticsCollection(IHasSemantics owner, int capacity)

Parameters

owner IHasSemantics

The owner of the collection.

capacity int

The initial number of elements the collection can store.

Methods

OnClearItems()

The method that gets called upon clearing the entire list.

protected override void OnClearItems()

OnInsertItem(int, MethodSemantics)

The method that gets called upon inserting a new item in the list.

protected override void OnInsertItem(int index, MethodSemantics item)

Parameters

index int

The index where the item is inserted at.

item MethodSemantics

The new item.

OnInsertRange(int, IEnumerable<MethodSemantics>)

The method that gets called upon inserting a collection of new items in the list.

protected override void OnInsertRange(int index, IEnumerable<MethodSemantics> items)

Parameters

index int

The index where the item is inserted at.

items IEnumerable<MethodSemantics>

The new items.

OnRemoveItem(int)

The method that gets called upon removing an item.

protected override void OnRemoveItem(int index)

Parameters

index int

The index of the element to remove.

OnSetItem(int, MethodSemantics)

The method that gets called upon replacing an item in the list.

protected override void OnSetItem(int index, MethodSemantics item)

Parameters

index int

The index that is being replaced.

item MethodSemantics

The new item.