FunctionType
Class in Yarn
Inherits from System.Object
Summary
A type that represents a function.
public class FunctionType : IType, IEquatable<IType>Remarks
Functions have parameters and a return type, and can be called from script. Instances of this type are created when the host application registers new functions (such as through using the RegisterFunction(string,Delegate) methods or similar.)
Constructors
| Name | Description |
|---|---|
| FunctionType(IType,IType[]) | Initialises a new instances of the FunctionType class. |
Methods
| Name | Description |
|---|---|
| Equals(IType) | |
| GetParameterAt(int) | Gets the type of the parameter at the given index. |
| ToString() |
Properties
| Name | Description |
|---|---|
| Description | Gets a more verbose description of this type. |
| Name | Gets the name of this type. |
| Parameters | Gets the list of the parameter types that this function is called with. |
| Parent | Gets the parent of this type. |
| ReturnType | Gets the type of value that this function returns. |
| TypeMembers | Gets the collection of type information for this type’s type members. |
| VariadicParameterType | Gets the type of value that this type of function accepts as a variadic parameter. |