Show / Hide Table of Contents

Class CompositionList<T>

Denotes the base class for a composition list

Inheritance
object
Collection<T>
CompositionList<T>
Implements
IList<T>
ICollection<T>
IReadOnlyList<T>
IReadOnlyCollection<T>
IEnumerable<T>
IList
ICollection
IEnumerable
Inherited Members
Collection<T>.Add(T)
Collection<T>.Clear()
Collection<T>.Contains(T)
Collection<T>.CopyTo(T[], int)
Collection<T>.GetEnumerator()
Collection<T>.IndexOf(T)
Collection<T>.Insert(int, T)
Collection<T>.Remove(T)
Collection<T>.RemoveAt(int)
Collection<T>.Count
Collection<T>.this[int]
Collection<T>.Items
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: NMF.Models.Collections
Assembly: NMF.Models.dll
Syntax
public class CompositionList<T> : Collection<T>, IList<T>, ICollection<T>, IReadOnlyList<T>, IReadOnlyCollection<T>, IEnumerable<T>, IList, ICollection, IEnumerable where T : class, IModelElement
Type Parameters
Name Description
T

The type of elements

Constructors

| Edit this page View Source

CompositionList(ModelElement)

Create a new instance

Declaration
public CompositionList(ModelElement parent)
Parameters
Type Name Description
ModelElement parent

The parent model element

Exceptions
Type Condition
ArgumentNullException

Thrown if the parent is null

Properties

| Edit this page View Source

Parent

Gets the parent model element

Declaration
public ModelElement Parent { get; }
Property Value
Type Description
ModelElement

Methods

| Edit this page View Source

ClearItems()

Declaration
protected override void ClearItems()
Overrides
Collection<T>.ClearItems()
| Edit this page View Source

InsertItem(int, T)

Declaration
protected override void InsertItem(int index, T item)
Parameters
Type Name Description
int index
T item
Overrides
Collection<T>.InsertItem(int, T)
| Edit this page View Source

RemoveItem(int)

Declaration
protected override void RemoveItem(int index)
Parameters
Type Name Description
int index
Overrides
Collection<T>.RemoveItem(int)
| Edit this page View Source

SetItem(int, T)

Declaration
protected override void SetItem(int index, T item)
Parameters
Type Name Description
int index
T item
Overrides
Collection<T>.SetItem(int, T)

Implements

IList<T>
ICollection<T>
IReadOnlyList<T>
IReadOnlyCollection<T>
IEnumerable<T>
IList
ICollection
IEnumerable
  • Edit this page
  • View Source
In this article
Back to top Generated by DocFX