Represents a collection of children.

Namespace: DigitalRune.Collections
Assembly: DigitalRune (in DigitalRune.dll) Version: 1.10.0.0 (1.10.0.9503)

Syntax

C#
public abstract class ChildCollection<TParent, TChild> : Collection<TChild>
where TParent : class
where TChild : class
Visual Basic
Public MustInherit Class ChildCollection(Of TParent As Class, TChild As Class) _
	Inherits Collection(Of TChild)
Visual C++
generic<typename TParent, typename TChild>
where TParent : ref class
where TChild : ref class
public ref class ChildCollection abstract : public Collection<TChild>

Type Parameters

TParent
The type of the parent object.
TChild
The type of the child object.

Remarks

When a new object is added to or removed from the ChildCollection<(Of <(<'TParent, TChild>)>)> the method SetParent(TChild, TParent) is called to set the parent property of the child object.

Duplicates items or nullNothingnullptra null reference (Nothing in Visual Basic) are not allowed.

Inheritance Hierarchy

See Also