PostSharp 6.10 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Patterns.​Model Namespace / Aggregatable­Extensions Class / Aggregatable­Extensions Methods / Aggregatable­Extensions.​Is­Descendant­Of Method

AggregatableExtensions.IsDescendantOf Method

Determines whether a specified object is a descendant of a specified ancestor.

Namespace:  PostSharp.Patterns.Model
Assembly:  PostSharp.Patterns.Aggregation (in PostSharp.Patterns.Aggregation.dll) Version: (
public static bool IsDescendantOf(
	this IAggregatable child,
	Object ancestor


Type: PostSharp.Patterns.Model.IAggregatable
The child object.
Type: System.Object
The ancestor object.

Return Value

Type: Boolean
true if child is a descendant of ancestor, otherwise false.

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