Method in FunctionTypeBuilder
Creates a new FunctionTypeBuilder based on a delegate type.
System.Type
type
The type of a delegate to produce a type builder from. This type must be a delegate.
A newly created FunctionTypeBuilder .
Method in FunctionTypeBuilder
Sets the ReturnType of the FunctionType .
returnType
The return type to apply to the function.
The FunctionTypeBuilder instance that received this method call.
Class in Yarn.Compiler
Inherits from System.Object
Provides methods for constructing FunctionType objects.
To use this class, create an instance of it, and call the With
-prefixed methods to set properties. When you're done, access the FunctionType property to get the final, constructed FunctionType .
Creates a new based on a delegate type.
Adds a new parameter of type parameterType
to the .
Sets the of the .
Gets the instance constructed by this .
Method in FunctionTypeBuilder
Adds a new parameter of type parameterType
to the FunctionType .
parameterType
The type of the new parameter to add to the function.
The FunctionTypeBuilder instance that received this method call.