<PackageReference Include="Serilog" Version="4.3.2-dev-02433" />

Serilog.Data.LogEventPropertyValueVisitor<TState, TResult>

public abstract class LogEventPropertyValueVisitor<TState, TResult>
An abstract base class for visitors that walk data in the LogEventPropertyValue format. Subclasses, by overriding appropriate methods, may search for, transform, or print the value structures being visited.

protected virtual TResult Visit(TState state, LogEventPropertyValue value)

Visit the root node type. This method delegates to a concrete Visit*Value() method appropriate for the value.

protected abstract TResult VisitDictionaryValue(TState state, DictionaryValue dictionary)

Visit a DictionaryValue value.

protected abstract TResult VisitScalarValue(TState state, ScalarValue scalar)

Visit a ScalarValue value.

protected abstract TResult VisitSequenceValue(TState state, SequenceValue sequence)

Visit a SequenceValue value.

protected abstract TResult VisitStructureValue(TState state, StructureValue structure)

Visit a StructureValue value.

protected virtual TResult VisitUnsupportedValue(TState state, LogEventPropertyValue value)

Visit a value of an unsupported type. Always throws NotSupportedException, when is not overridden.