Represents a provided type definition.
Constructor | Description |
Full Usage:
ProvidedTypeDefinition(assembly, namespaceName, className, baseType, ?hideObjectMethods, ?nonNullable, ?isErased, ?isSealed, ?isInterface, ?isAbstract)
Parameters:
Assembly
namespaceName : string
className : string
baseType : Type option
?hideObjectMethods : bool
?nonNullable : bool
?isErased : bool
?isSealed : bool
?isInterface : bool
?isAbstract : bool
Returns: ProvidedTypeDefinition
|
When making a cross-targeting type provider, use this method instead of the corresponding ProvidedTypeDefinition constructor from ProvidedTypes
|
Full Usage:
ProvidedTypeDefinition(className, baseType, ?hideObjectMethods, ?nonNullable, ?isErased, ?isSealed, ?isInterface, ?isAbstract)
Parameters:
string
baseType : Type option
?hideObjectMethods : bool
?nonNullable : bool
?isErased : bool
?isSealed : bool
?isInterface : bool
?isAbstract : bool
Returns: ProvidedTypeDefinition
|
When making a cross-targeting type provider, use this method instead of the corresponding ProvidedTypeDefinition constructor from ProvidedTypes
|
Instance member | Description |
Full Usage:
this.AddAssemblyTypesAsNestedTypesDelayed
Parameters:
unit -> Assembly
|
Add the types of the generated assembly as generative types, where types in namespaces get hierarchically positioned as nested types.
|
|
|
Full Usage:
this.AddDefinitionLocation
Parameters:
int
column : int
filePath : string
|
|
|
|
Full Usage:
this.AddInterfaceImplementationsDelayed
Parameters:
unit -> Type list
|
|
|
|
Full Usage:
this.AddMemberDelayed
Parameters:
unit -> 'a
|
Add a member to a ProvidedTypeDefinition, delaying computation of the members until required by the compilation context.
|
Full Usage:
this.AddMembers
Parameters:
'a list
|
|
Full Usage:
this.AddMembersDelayed
Parameters:
unit -> 'a list
|
Add a set of members to a ProvidedTypeDefinition, delaying computation of the members until required by the compilation context.
|
Full Usage:
this.AddObsoleteAttribute
Parameters:
string
?isError : bool
|
|
Full Usage:
this.AddXmlDoc
Parameters:
string
|
|
Full Usage:
this.AddXmlDocComputed
Parameters:
unit -> string
|
Add XML documentation information to this provided constructor, where the computation of the documentation is delayed until necessary The documentation is re-computed every time it is required.
|
Full Usage:
this.AddXmlDocDelayed
Parameters:
unit -> string
|
Add XML documentation information to this provided constructor, where the computation of the documentation is delayed until necessary. The documentation is only computed once.
|
Full Usage:
this.ApplyStaticArguments
Parameters:
string
args : obj[]
Returns: ProvidedTypeDefinition
|
|
Full Usage:
this.DefineMethodOverride
Parameters:
ProvidedMethod
methodInfoDeclaration : MethodInfo
|
|
Full Usage:
this.DefineMethodOverridesDelayed
Parameters:
unit -> (ProvidedMethod * MethodInfo) list
|
|
Full Usage:
this.DefineStaticParameters
Parameters:
ProvidedStaticParameter list
instantiationFunction : string -> obj[] -> ProvidedTypeDefinition
|
|
Full Usage:
this.HideObjectMethods
Returns: bool
|
|
Full Usage:
this.IsErased
Returns: bool
|
|
Full Usage:
this.NonNullable
Returns: bool
|
|
|
|
|
|
|
Set the base type to a lazily evaluated value. Use this to delay realization of the base type as late as possible.
|
|
|
Full Usage:
this.SuppressRelocation
|
Static member | Description |
|
Emulate the F# type provider type erasure mechanism to get the actual (erased) type. We erase ProvidedTypes to their base type and we erase array of provided type to array of base type. In the case of generics all the generic type arguments are also recursively replaced with the erased-to types
|
Full Usage:
ProvidedTypeDefinition.Logger
Returns: (string -> unit) option ref
|
Get or set a utility function to log the creation of root Provided Type. Used to debug caching/invalidation.
|