PostSharp.ILAPI ReferencePost­Sharp.​Patterns.​Diagnostics.​Record­BuildersLog­Record­BuilderFor­Each­Property
Open sandboxFocus

LogRecordBuilder.ForEachProperty Method

ForEachProperty(LoggingPropertyVisitor<Object>)

Invokes a delegate for each property defined in the current log record.

Declaration
public void ForEachProperty(LoggingPropertyVisitor<object> visitor)
Parameters
Type Name Description
LoggingPropertyVisitor<Object> visitor

The delegate to invoke. The state parameter of the delegate will be assigned to a dummy variable.

ForEachProperty<T>(LoggingPropertyVisitor<T>, ref T)

Invokes a delegate for each property defined in the current log record.

Declaration
public void ForEachProperty<T>(LoggingPropertyVisitor<T> visitor, ref T state)
Parameters
Type Name Description
LoggingPropertyVisitor<T> visitor

The delegate to invoke. The state parameter of the delegate will be assigned to a dummy variable.

T state

Some state that will be passed to the visitor delegate.

Type Parameters
Name Description
T

Type of the state passed to the visitor delegate.