Open sandboxFocus

Property Types

Types

Gets the list of types defined in the current namespace or type.

Declaration
INamedTypeCollection Types { get; }
Property Value
Type Description
INamedTypeCollection
Remarks

If the current object is an INamedType, this is the collection of nested types. If the current object is an INamespace, the collection only includes types inside the DeclaringAssembly. In case of partial compilations (see IsPartial), this collection only contain the types in the current partial compilation.