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

# GetParameterAt(int)

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

## Summary

Gets the type of the parameter at the given index.

```csharp
public IType GetParameterAt(int index)
```

## Parameters

| Name        | Description                                     |
| ----------- | ----------------------------------------------- |
| `int` index | The index of the parameter to get the type for. |

## Returns

The type of the parameter. If `index` is beyond the length of [Parameters](/api/csharp/yarn/yarn.functiontype/yarn.functiontype.parameters.md) , and [VariadicParameterType](/api/csharp/yarn/yarn.functiontype/yarn.functiontype.variadicparametertype.md) is not `null` , [VariadicParameterType](/api/csharp/yarn/yarn.functiontype/yarn.functiontype.variadicparametertype.md) is returned.
