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

NLog.LayoutRenderers.Wrappers.ObjectPathRendererWrapper

Render a single property of a object
public CultureInfo Culture { get; set; }

Gets or sets the culture used for rendering.

public string Format { get; set; }

Format string for conversion from object to string.

public string ObjectPath { get; set; }

Gets or sets the object-property-navigation-path for lookup of nested property

public string Path { get; set; }

Gets or sets the object-property-navigation-path for lookup of nested property Shortcut for ObjectPath

public bool TryGetPropertyValue(object sourceObject, out object propertyValue)

Lookup property-value from source object based on ObjectPath