Constructor | Description |
Full Usage:
ProvidedMethod(methodName, parameters, returnType, ?invokeCode, ?isStatic)
Parameters:
string
parameters : ProvidedParameter list
returnType : Type
?invokeCode : Expr list -> Expr
?isStatic : bool
Returns: ProvidedMethod
|
When making a cross-targeting type provider, use this method instead of the ProvidedMethod constructor from ProvidedTypes
|
Instance member | Description |
|
Add a custom attribute to the provided method definition.
|
Full Usage:
this.AddDefinitionLocation(line, column, filePath)
Parameters:
int
column : int
filePath : string
|
Add definition location information to the provided type definition.
|
|
|
Full Usage:
this.AddObsoleteAttribute(message, ?isError)
Parameters:
string
?isError : bool
|
Add XML documentation information to this provided method
|
Full Usage:
this.AddXmlDoc(xmlDoc)
Parameters:
string
|
Add XML documentation information to this provided constructor
|
Full Usage:
this.AddXmlDocComputed(xmlDocFunction)
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(xmlDocFunction)
Parameters:
unit -> string
|
Add XML documentation information to this provided constructor, where the computation of the documentation is delayed until necessary
|
Full Usage:
this.DefineStaticParameters(parameters, instantiationFunction)
Parameters:
ProvidedStaticParameter list
instantiationFunction : string -> obj[] -> ProvidedMethod
|
Define the static parameters available on a statically parameterized method
|
|
Set the method attributes of the method. By default these are simple 'MethodAttributes.Public'
|