FunctionTypeBuilder
public class FunctionTypeBuilderInherits from System.Object
With-prefixed methods to set properties. When you're done, access
the FunctionType property to get the final, constructed
FunctionType.#Properties
#FunctionType
public FunctionType FunctionType { get; }Type FunctionType
#Methods
#FromFunctionType(System.Type)
public static FunctionTypeBuilder FromFunctionType(System.Type type)Parameters
typeSystem.TypeThe type of a delegate to produce a type builder from. This type must be a delegate.
Returns FunctionTypeBuilder: A newly created FunctionTypeBuilder.
Exceptions
System.ArgumentExceptionThrown when the provided type is not a delegate or has invalid components.
#WithParameter(IType)
parameterType to the
FunctionType.public FunctionTypeBuilder WithParameter(IType parameterType)Parameters
parameterTypeYarn.ITypeThe type of the new parameter to add to the function.
Returns FunctionTypeBuilder: The FunctionTypeBuilder instance that
received this method call.
#WithReturnType(IType)
public FunctionTypeBuilder WithReturnType(IType returnType)Parameters
returnTypeYarn.ITypeThe return type to apply to the function.
Returns FunctionTypeBuilder: The FunctionTypeBuilder instance that
received this method call.
#WithVariadicParameterType(IType?)
public FunctionTypeBuilder WithVariadicParameterType(IType? variadicParameterType)Parameters
variadicParameterTypeYarn.ITypeThe variadic parameter type to apply to the function.
Returns FunctionTypeBuilder: The FunctionTypeBuilder instance that
received this method call.
Generated from Yarn Spinner for Unity 3.3.