ContainedChildren(IDeclaration)
Gets the declarations (namespaces, types, methods, properties, fields, constructors, events, indexers) directly contained in the given declaration.
Declaration
public static IEnumerable<IDeclaration> ContainedChildren(this IDeclaration declaration)Parameters
| Type | Name | Description |
|---|---|---|
| IDeclaration | declaration | The declaration whose children to retrieve. |
Returns
| Type | Description |
|---|---|
| IEnumerable<IDeclaration> | An enumerable of all directly contained declarations. |
Remarks
The method does not descent into accessors, custom attributes, parameters, or type parameters.