Open sandboxFocus

Struct FormattingStringParser

Represents a parser of the formatting string for custom messages of the Logger and LogActivity classes.

Namespace: PostSharp.Patterns.Diagnostics.Custom
Assembly: PostSharp.Patterns.Common.dll
Syntax
public struct FormattingStringParser
Remarks

Use this parser when you implement your own type of message (IMessage) and want to support the formatting string syntax of FormattedMessageBuilder.

Constructors

Name Description
FormattingStringParser(string)

Initializes a new instance of the FormattingStringParser struct.

Methods

Name Description
GetNextParameter()

Gets the next parameter name.

GetNextSubstring()

Gets the next substring, up to the next parameter or the end of the string.

See Also