LogRecordBuilder.ForEachProperty<T> Method (LoggingPropertyVisitor<T>, T) |
Invokes a delegate for each property defined in the current log record.
Namespace: PostSharp.Patterns.Diagnostics.RecordBuilders
Assembly: PostSharp.Patterns.Diagnostics (in PostSharp.Patterns.Diagnostics.dll) Version: 6.9.1.0 (6.9.1.0)
C#
public void ForEachProperty<T>( LoggingPropertyVisitor<T> visitor, ref T state )
Parameters
- visitor
- Type: PostSharp.Patterns.Diagnostics.Contexts.LoggingPropertyVisitor<T>
The delegate to invoke. The state parameter of the delegate will be assigned to a dummy variable. - state
- Type: T
Some state that will be passed to the visitor delegate.
Type Parameters
- T
- Type of the state passed to the visitor delegate.