I would recommend reusing AsFormattedString()
```csharp
string parametersAsString = parameters == null ? string.Empty : parameters.AsFormattedString();
```