<PackageReference Include="Serilog.Exceptions" Version="8.3.0" />

Serilog.Exceptions.Reflection.ReflectionPropertyInfo

Class that holds reflection information about a single property.
public Type DeclaringType { get; }

Gets the type that declared the property.

public Func<object, object> Getter { get; }

Gets a function that extracts value of the property from an object.

public string Name { get; }

Gets name of the property. It includes type name if name conflicts with other property of derived class.

public ReflectionPropertyInfo(string name, Type declaringType, Func<object, object> getter)

Initializes a new instance of the ReflectionPropertyInfo class.

public void MarkNameWithTypeName()

Idempotent action that extends property name with a type name of its declaring type to avoid name uniqueness conflict.

Conditionally marks property with its declaring type name to avoid name uniqueness conflict.