> 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/3.1/api/csharp/yarn/yarn.functiontype/yarn.functiontype..ctor.md).

# FunctionType(IType,IType\[])

Constructor in [FunctionType](/3.1/api/csharp/yarn/yarn.functiontype.md)

## Summary

Initialises a new instances of the [FunctionType](/3.1/api/csharp/yarn/yarn.functiontype.md) class.

```csharp
public FunctionType(IType returnType, params IType[] parameterTypes)
```

## Parameters

| Name                                                                | Description                                                     |
| ------------------------------------------------------------------- | --------------------------------------------------------------- |
| [Yarn.IType](/3.1/api/csharp/yarn/yarn.itype.md) returnType         | The type of the value that this type of function returns.       |
| [Yarn.IType\[\]](/3.1/api/csharp/yarn/yarn.itype.md) parameterTypes | The types of the parameters that this type of function accepts. |
