Open sandboxFocus

Method ContainedDescendants

ContainedDescendants(IDeclaration)

Gets the declarations (namespaces, types, methods, properties, fields, constructors, events, indexers) in the given declaration and in any child of the declaration.

Declaration
public static IEnumerable<IDeclaration> ContainedDescendants(this IDeclaration declaration)
Parameters
Type Name Description
IDeclaration declaration
Returns
Type Description
IEnumerable<IDeclaration>
Remarks

The method does not descent into accessors, custom attributes, parameters, or type parameters.