Open sandboxFocus

Method IsDescendantOf

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
bool

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