FSharp.Core


ITypeProvider Type

Represents an instantiation of a type provider component.

Instance members

Instance member Description

this.ApplyStaticArguments

Full Usage: this.ApplyStaticArguments

Parameters:
    typeWithoutArguments : Type - the provided type definition which has static parameters
    typePathWithArguments : string[] - the full path of the type, including encoded representations of static parameters
    staticArguments : obj[] - the static parameters, indexed by name

Returns: Type
Modifiers: abstract

Apply static arguments to a provided type that accepts static arguments.

The provider must return a type with the given mangled name.

typeWithoutArguments : Type

the provided type definition which has static parameters

typePathWithArguments : string[]

the full path of the type, including encoded representations of static parameters

staticArguments : obj[]

the static parameters, indexed by name

Returns: Type

this.GetGeneratedAssemblyContents

Full Usage: this.GetGeneratedAssemblyContents

Parameters:
Returns: byte[]
Modifiers: abstract

Get the physical contents of the given logical provided assembly.

assembly : Assembly
Returns: byte[]

this.GetInvokerExpression

Full Usage: this.GetInvokerExpression

Parameters:
    syntheticMethodBase : MethodBase - MethodBase that was given to the compiler by a type returned by a GetType(s) call.
    parameters : Expr[] - Expressions that represent the parameters to this call.

Returns: Expr An expression that the compiler will use in place of the given method base.
Modifiers: abstract

Called by the compiler to ask for an Expression tree to replace the given MethodBase with.

syntheticMethodBase : MethodBase

MethodBase that was given to the compiler by a type returned by a GetType(s) call.

parameters : Expr[]

Expressions that represent the parameters to this call.

Returns: Expr

An expression that the compiler will use in place of the given method base.

this.GetNamespaces

Full Usage: this.GetNamespaces

Returns: IProvidedNamespace[]
Modifiers: abstract

Gets the namespaces provided by the type provider.

Returns: IProvidedNamespace[]

this.GetStaticParameters

Full Usage: this.GetStaticParameters

Parameters:
    typeWithoutArguments : Type - A type returned by GetTypes or ResolveTypeName

Returns: ParameterInfo[]
Modifiers: abstract

Get the static parameters for a provided type.

typeWithoutArguments : Type

A type returned by GetTypes or ResolveTypeName

Returns: ParameterInfo[]

this.Invalidate

Full Usage: this.Invalidate

Returns: IEvent<EventHandler, EventArgs>
Modifiers: abstract

Triggered when an assumption changes that invalidates the resolutions so far reported by the provider

Returns: IEvent<EventHandler, EventArgs>