This documentation is archived and is not being maintained.

TypeProvider Class

An implementation of ITypeProvider that acts as a container of types within the indicated assemblies and code compile units.

Namespace:  System.Workflow.ComponentModel.Compiler
Assembly:  System.Workflow.ComponentModel (in System.Workflow.ComponentModel.dll)

public sealed class TypeProvider : ITypeProvider, 
	IServiceProvider, IDisposable

This ITypeProvider implementation, in addition to handling compiled assemblies (AddAssembly and AddAssemblyReference methods), can handle types that have not been compiled yet (AddCodeCompileUnit). The limited implementation of System.Type is returned for types referenced using CodeCompileUnit.


TypeProvider only returns public types from referenced assemblies, and both public and non-public types from local assemblies.


Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

.NET Framework

Supported in: 3.5, 3.0