FunctionTypeBuilder
Class in Yarn.Compiler
Inherits from System.Object
Summary
Provides methods for constructing FunctionType objects.
public class FunctionTypeBuilderRemarks
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 .
Methods
| Name | Description |
|---|---|
| FromFunctionType(System.Type) | Creates a new FunctionTypeBuilder based on a delegate type. |
| WithParameter(IType) | Adds a new parameter of type parameterType to the FunctionType . |
| WithReturnType(IType) | Sets the ReturnType of the FunctionType . |
| WithVariadicParameterType(IType?) | Sets the VariadicParameterType of the FunctionType . |
Properties
| Name | Description |
|---|---|
| FunctionType | Gets the FunctionType instance constructed by this FunctionTypeBuilder . |