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>, IReadOnlyList<MethodSemantics>, IReadOnlyCollection<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
ownerIHasSemanticsThe owner of the collection.
MethodSemanticsCollection(IHasSemantics, int)
Creates a new instance of the MethodSemanticsCollection class.
public MethodSemanticsCollection(IHasSemantics owner, int capacity)
Parameters
ownerIHasSemanticsThe owner of the collection.
capacityintThe 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
indexintThe index where the item is inserted at.
itemMethodSemanticsThe 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
indexintThe index where the item is inserted at.
itemsIEnumerable<MethodSemantics>The new items.
OnRemoveItem(int)
The method that gets called upon removing an item.
protected override void OnRemoveItem(int index)
Parameters
indexintThe 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
indexintThe index that is being replaced.
itemMethodSemanticsThe new item.