PostSharpAPI ReferencePost­Sharp.​Patterns.​ModelAggregatable­ExtensionsIs­Descendant­Of
Open sandboxFocus

AggregatableExtensions.IsDescendantOf Method

IsDescendantOf(IAggregatable, Object)

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

Declaration
public static bool IsDescendantOf(this IAggregatable child, object ancestor)
Parameters
Type Name Description
IAggregatable child

The child object.

Object ancestor

The ancestor object.

Returns
Type Description
Boolean

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