# FunctionType

Class in [Yarn](https://docs.yarnspinner.dev/2.0/api/csharp/yarn)

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)](https://docs.yarnspinner.dev/2.0/api/csharp/yarn/yarn.library/yarn.library.registerfunction-7) methods or similar.)

## Properties

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