AggregatableExtensions.IsDescendantOf Method
Determines whether a specified object is a descendant of a specified ancestor.

Namespace: PostSharp.Patterns.Model
Assembly: PostSharp.Patterns.Common (in PostSharp.Patterns.Common.dll) Version: 4.3.31.0 (4.3.31.0)
Syntax
C#
public static bool IsDescendantOf(
	this IAggregatable child,
	Object ancestor
)

Parameters

child
Type: PostSharp.Patterns.Model.IAggregatable
The child object.
ancestor
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