FunctionTypeBuilder

Class in Yarn.Compiler

Inherits from System.Object

Summary

Provides methods for constructing FunctionType objects.

public class FunctionTypeBuilder

Remarks

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

NameDescription
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

NameDescription
FunctionTypeGets the FunctionType instance constructed by this FunctionTypeBuilder .