A base type providing default implementations of type provider functionality.
Constructor | Description |
Full Usage:
TypeProviderForNamespaces(config, ?sourceAssemblies, ?assemblyReplacementMap, ?addDefaultProbingLocation)
Parameters:
TypeProviderConfig
-
Type provider config.
?sourceAssemblies : Assembly list
-
Optionally specify the design-time assemblies available to use as a basis for authoring provided types.
The transitive dependencies of these assemblies are also included. By default
Assembly.GetCallingAssembly() and its transitive dependencies are used.
?assemblyReplacementMap : (string * string) list
-
Optionally specify a map of assembly names from source model to referenced assemblies.
?addDefaultProbingLocation : bool
-
Optionally specify that the location of the type provider design-time component should be used to resolve failing assembly resolutions.
This flag or an equivalent call to RegisterProbingFolder is generally needed for any type provider design-time components loaded into .NET Core tooling.
Returns: TypeProviderForNamespaces
|
|
Full Usage:
TypeProviderForNamespaces(config, namespaceName, types, ?sourceAssemblies, ?assemblyReplacementMap, ?addDefaultProbingLocation)
Parameters:
TypeProviderConfig
-
Type provider config.
namespaceName : string
-
Name of namespace.
types : ProvidedTypeDefinition list
-
Provided type definitions.
?sourceAssemblies : Assembly list
-
Optionally specify the design-time assemblies available to use as a basis for authoring provided types.
The transitive dependencies of these assemblies are also included. By default
Assembly.GetCallingAssembly() and its transitive dependencies are used.
?assemblyReplacementMap : (string * string) list
-
Optionally specify a map of assembly names from source model to referenced assemblies.
?addDefaultProbingLocation : bool
-
Optionally specify that the location of the type provider design-time component should be used to resolve failing assembly resolutions.
This flag or an equivalent call to RegisterProbingFolder is generally needed for any type provider design-time components loaded into .NET Core tooling.
Returns: TypeProviderForNamespaces
|
|
Instance member | Description |
Full Usage:
this.AddNamespace(namespaceName, types)
Parameters:
string
types : ProvidedTypeDefinition list
|
Invoked by the type provider to add a namespace of provided types in the specification of the type provider.
|
Full Usage:
this.ApplyStaticArgumentsForMethod(arg1, arg2, arg3)
Parameters:
MethodBase
arg1 : string
arg2 : obj[]
Returns: MethodBase
|
|
|
|
Full Usage:
this.GetStaticParametersForMethod(arg1)
Parameters:
MethodBase
Returns: ParameterInfo[]
|
|
Full Usage:
this.Invalidate()
|
|
|
|
Full Usage:
this.RegisterGeneratedTargetAssembly(fileName)
Parameters:
string
Returns: Assembly
|
Register that a given file is a provided generated target assembly, e.g. an assembly produced by an external code generation tool. This assembly should be a target assembly.
|
Full Usage:
this.RegisterProbingFolder(folder)
Parameters:
string
|
|
Full Usage:
this.RegisterRuntimeAssemblyLocationAsProbingFolder(config)
Parameters:
TypeProviderConfig
|
|
Full Usage:
this.ResolveAssembly(arg1)
Parameters:
ResolveEventArgs
Returns: Assembly
Modifiers: abstract |
|
|
The context for which code is eventually to be generated. You should not normally need to use this property directly, as translation from the compiler-hosted context to the design-time context will normally be performed automatically.
|