FSharp.TypeProviders.SDK


ProvidedAssembly Type

A provided generated assembly

Constructors

Constructor Description

ProvidedAssembly()

Full Usage: ProvidedAssembly()

Returns: ProvidedAssembly

Create a provided generated assembly using a temporary file as the interim assembly storage

Returns: ProvidedAssembly

ProvidedAssembly(assemblyName, assemblyFileName)

Full Usage: ProvidedAssembly(assemblyName, assemblyFileName)

Parameters:
Returns: ProvidedAssembly

Create a provided generated assembly

assemblyName : AssemblyName
assemblyFileName : string
Returns: ProvidedAssembly

Instance members

Instance member Description

this.AddNestedTypes(types, enclosingGeneratedTypeNames)

Full Usage: this.AddNestedTypes(types, enclosingGeneratedTypeNames)

Parameters:
    types : ProvidedTypeDefinition list - Provided type definitions.
    enclosingGeneratedTypeNames : string list - A path of type names to wrap the generated types. The generated types are then generated as nested types.

Emit the given nested provided type definitions as part of the assembly. and adjust the 'Assembly' property of all provided type definitions to return that assembly.

types : ProvidedTypeDefinition list

Provided type definitions.

enclosingGeneratedTypeNames : string list

A path of type names to wrap the generated types. The generated types are then generated as nested types.

this.AddTypes(types)

Full Usage: this.AddTypes(types)

Parameters:

Emit the given provided type definitions as part of the assembly and adjust the 'Assembly' property of all provided type definitions to return that assembly. The assembly is only emitted when the Assembly property on the root type is accessed for the first time. The host F# compiler does this when processing a generative type declaration for the type.

types : ProvidedTypeDefinition list