# GetParameterAt(int)

Method in [FunctionType](https://docs.yarnspinner.dev/api/csharp/yarn/yarn.functiontype)

## 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](https://docs.yarnspinner.dev/api/csharp/yarn/yarn.functiontype/yarn.functiontype.parameters) , and [VariadicParameterType](https://docs.yarnspinner.dev/api/csharp/yarn/yarn.functiontype/yarn.functiontype.variadicparametertype) is not `null` , [VariadicParameterType](https://docs.yarnspinner.dev/api/csharp/yarn/yarn.functiontype/yarn.functiontype.variadicparametertype) is returned.
