# IExampleBodyTypeHandler.GetBodyExampleForType

Kind: Method  
Namespace: `Sisk.Documenting.Content`  
Assembly: `Sisk.Documenting.dll`  
Source: https://docs.sisk-framework.org/api/Sisk.Documenting.Content.IExampleBodyTypeHandler.GetBodyExampleForType.html

## GetBodyExampleForType(Type) {#Sisk_Documenting_Content_IExampleBodyTypeHandler_GetBodyExampleForType_System_Type_}

Gets an example body for the specified `type`.

```csharp
BodyExampleResult? GetBodyExampleForType(Type type)
```

### Parameters

`type` [Type](https://learn.microsoft.com/dotnet/api/system.type)

The type for which to generate an example body. Cannot be [`null`](https://learn.microsoft.com/dotnet/csharp/language-reference/keywords/null).

### Returns

[BodyExampleResult](https://docs.sisk-framework.org/api/Sisk.Documenting.Content.BodyExampleResult.md)?

A [BodyExampleResult](https://docs.sisk-framework.org/api/Sisk.Documenting.Content.BodyExampleResult.md) containing the example contents and language, or
[`null`](https://learn.microsoft.com/dotnet/csharp/language-reference/keywords/null) if no example can be generated for the specified type.
