# BodyExampleResult constructor

Kind: Constructor  
Namespace: `Sisk.Documenting.Content`  
Assembly: `Sisk.Documenting.dll`  
Source: https://docs.sisk-framework.org/api/Sisk.Documenting.Content.BodyExampleResult.-ctor.html

## BodyExampleResult(string, string?) {#Sisk_Documenting_Content_BodyExampleResult__ctor_System_String_System_String_}

Initializes a new instance of the [BodyExampleResult](https://docs.sisk-framework.org/api/Sisk.Documenting.Content.BodyExampleResult.md) class.

```csharp
public BodyExampleResult(string exampleContents, string? exampleLanguage)
```

### Parameters

`exampleContents` [string](https://learn.microsoft.com/dotnet/api/system.string)

The example contents. Cannot be [`null`](https://learn.microsoft.com/dotnet/csharp/language-reference/keywords/null).

`exampleLanguage` [string](https://learn.microsoft.com/dotnet/api/system.string)?

The language of the example, or [`null`](https://learn.microsoft.com/dotnet/csharp/language-reference/keywords/null) if not applicable.
