Compartilhar via


ITypeProvider.ApplyStaticArguments Method (F#)

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)

Parameters

  • typeWithoutArguments
    Type: 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.

Remarks

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

Platforms

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

Reference

CompilerServices.ITypeProvider Interface (F#)

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