PostSharpAPI ReferencePost­Sharp.​Patterns.​ModelAggregatable­ExtensionsGet­Children
Open sandboxFocus

AggregatableExtensions.GetChildren Method

GetChildren(IAggregatable, ChildVisitorOptions)

Gets the list of children of a specified parent object.

Declaration
public static IList<object> GetChildren(this IAggregatable parent, ChildVisitorOptions options)
Parameters
Type Name Description
IAggregatable parent

The parent object.

ChildVisitorOptions options

Options.

Returns
Type Description
IList<Object>

A list of children.

Remarks

This list may contain duplicates if an object has several parent-child relationships to the same parent. Use GetDistinctChildren(IAggregatable, ChildVisitorOptions) to get a list of distinct children.