Table of contents
Collapse the table of content
Expand the table of content

ITypeProvider.ApplyStaticArguments Method (F#)

Den Delimarsky|Last Updated: 8/18/2017
1 Contributor

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

Namespace/Module Path: Microsoft.FSharp.Core.CompilerServices

Assembly: FSharp.Core (in FSharp.Core.dll)


// Signature:
abstract this.ApplyStaticArguments : Type * string [] * obj [] -> Type

// Usage:
iTypeProvider.ApplyStaticArguments (typeWithoutArguments, typeNameWithArguments, staticArguments)


typeWithoutArguments Type: System.Type

A type to which you want to apply static arguments.

typeNameWithArguments Type: string []

The mangled name of the type after including static parameters. The mangled name is derived from the base type name by adding a backtick (`) and a number that indicates the number of static arguments.

staticArguments Type: obj[]

The static parameters, indexed by name.

Return Value

The resulting type with static arguments applied.


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


Windows 8, Windows 7, Windows Server 2012, Windows Server 2008 R2

Version Information

F# Core Library Versions

Supported in: 4.0Supported in: 4.0, Portable

See Also

CompilerServices.ITypeProvider Interface (F#)

Microsoft.FSharp.Core.CompilerServices Namespace (F#)

© 2020 Microsoft