This is the online documentation for PostSharp 5.0.
Download PDF or CHM. Go to v4.3 or v5.0

AggregatableExtensions.GetDistinctChildren Method

Gets a list of distinct children of a specified parent object.

Namespace:  PostSharp.Patterns.Model
Assembly:  PostSharp.Patterns.Aggregation (in PostSharp.Patterns.Aggregation.dll) Version: 5.0.29.0 (5.0.29.0)
Syntax
C#
public static HashSet<Object> GetDistinctChildren(
	this IAggregatable parent,
	ChildVisitorOptions options = ChildVisitorOptions.None
)

Parameters

parent
Type: PostSharp.Patterns.Model.IAggregatable
The parent object.
options (Optional)
Type: PostSharp.Patterns.Model.ChildVisitorOptions
Options.

Return Value

Type: HashSet<Object>

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IAggregatable. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also