ConsoleLogRecordBuilder.AppendSemanticParameter<T> Method (SemanticParameterKind, ArraySegment<Char>, T, IFormatter<T>, String, Int32) |
Namespace: PostSharp.Patterns.Diagnostics.Backends.Console
Assembly: PostSharp.Patterns.Diagnostics (in PostSharp.Patterns.Diagnostics.dll) Version: 2023.0.3.0 (2023.0.3.0)
protected override void AppendSemanticParameter<T>( SemanticParameterKind kind, ArraySegment<char> name, T value, IFormatter<T> formatter, string prefix, int index = -1 )
Parameters
- kind
- Type: PostSharp.Patterns.Diagnostics.RecordBuilders.SemanticParameterKind
Kind of semantic parameter. - name
- Type: System.ArraySegment<Char>
Parameter name. The name parameter itself is not guaranteed to be unique in a given record. However, in combination with prefix and index, it is guaranteed to be unique. - value
- Type: T
Parameter value. - formatter
- Type: PostSharp.Patterns.Formatters.IFormatter<T>
The formatter to be used to format value. - prefix
- Type: System.String
Prefix to be prepended to name, or null if there is no prefix. - index (Optional)
- Type: System.Int32
Index of the parameter value, if there are several values for the same parameter name, or -1 if there is a single parameter value for this parameter name.
Type Parameters
- T