<PackageReference Include="NLog" Version="6.0.6" />

NLog.Layouts.ValueTypeLayoutInfo

public sealed class ValueTypeLayoutInfo
Typed Value that is easily configured from NLog.config file
public Layout DefaultValue { get; set; }

Gets or sets the fallback value when result value is not available

public bool ForceDefaultValueNull { get; set; }

Gets or sets the fallback value should be null (instead of default value of ValueType) when result value is not available

public Layout Layout { get; set; }

Gets or sets the layout used for rendering the value.

public CultureInfo ValueParseCulture { get; set; }

Gets or sets the culture used for parsing parameter string-value for type-conversion

public string ValueParseFormat { get; set; }

Gets or sets format used for parsing parameter string-value for type-conversion

public Type ValueType { get; set; }

Gets or sets the result value type, for conversion of layout rendering output

Initializes a new instance of the ValueTypeLayoutInfo class.

public object RenderValue(LogEventInfo logEvent)

Render Result Value