> For the complete documentation index, see [llms.txt](https://docs.yarnspinner.dev/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.yarnspinner.dev/2.4/api/csharp/yarn/yarn.functiontype.md).

# FunctionType

Class in [Yarn](/2.4/api/csharp/yarn.md)

Inherits from `System.Object`

## Summary

A type that represents functions.

```csharp
public class FunctionType : 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)](/2.4/api/csharp/yarn/yarn.library/yarn.library.registerfunction-7.md) methods or similar.)

## Properties

| Name                                                                                   | Description                                                             |
| -------------------------------------------------------------------------------------- | ----------------------------------------------------------------------- |
| [Description](/2.4/api/csharp/yarn/yarn.functiontype/yarn.functiontype.description.md) | Gets a more verbose description of this type.                           |
| [Methods](/2.4/api/csharp/yarn/yarn.functiontype/yarn.functiontype.methods.md)         | Gets the collection of methods that are available on this type.         |
| [Name](/2.4/api/csharp/yarn/yarn.functiontype/yarn.functiontype.name.md)               | Gets the name of this type.                                             |
| [Parameters](/2.4/api/csharp/yarn/yarn.functiontype/yarn.functiontype.parameters.md)   | Gets the list of the parameter types that this function is called with. |
| [Parent](/2.4/api/csharp/yarn/yarn.functiontype/yarn.functiontype.parent.md)           | Gets the parent of this type.                                           |
| [ReturnType](/2.4/api/csharp/yarn/yarn.functiontype/yarn.functiontype.returntype.md)   | Gets the type of value that this function returns.                      |
