PostSharpAPI ReferencePost­Sharp.​Patterns.​Diagnostics.​Record­BuildersLog­Record­BuilderWrite­Custom­String
Open sandboxFocus

LogRecordBuilder.WriteCustomString Method

WriteCustomString(ArraySegment<Char>)

Write a custom string passed as an ArraySegment<char>.

Declaration
public abstract void WriteCustomString(ArraySegment<char> str)
Parameters
Type Name Description
ArraySegment<System.Char> str

The string to be written.

Remarks

A custom string never contains formatting parameters. It is the responsibility of of the caller to parse a formatting string and invoke WriteCustomString(ArraySegment<Char>) and WriteCustomParameter<T>(Int32, ArraySegment<Char>, T) in alternation.

WriteCustomString(in CharSpan)

Write a custom string passed as an CharSpan.

Declaration
public virtual void WriteCustomString(in CharSpan str)
Parameters
Type Name Description
CharSpan str

The string to be written.

Implements
ICustomLogRecordBuilder.WriteCustomString(in CharSpan)
Remarks

A custom string never contains formatting parameters. It is the responsibility of of the caller to parse a formatting string and invoke WriteCustomString(in CharSpan) and WriteCustomParameter<T>(Int32, in CharSpan, T, in CustomLogParameterOptions) in alternation.