> 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.compiler/yarn.compiler.functiontypebuilder/yarn.compiler.functiontypebuilder.fromfunctiontype.md).

# FromFunctionType(System.Type)

Method in [FunctionTypeBuilder](/3.1/api/csharp/yarn.compiler/yarn.compiler.functiontypebuilder.md)

## Summary

Creates a new [FunctionTypeBuilder](/3.1/api/csharp/yarn.compiler/yarn.compiler.functiontypebuilder.md) based on a delegate type.

```csharp
public static FunctionTypeBuilder FromFunctionType(System.Type type)
```

## Parameters

| Name               | Description                                                                          |
| ------------------ | ------------------------------------------------------------------------------------ |
| `System.Type` type | The type of a delegate to produce a type builder from. This type must be a delegate. |

## Returns

A newly created [FunctionTypeBuilder](/3.1/api/csharp/yarn.compiler/yarn.compiler.functiontypebuilder.md) .
