Skip to content

FormatInterpolatedStringHandler Struct

Definition

An interpolated string handler that formats values using the assertion library's formatting rules.

public sealed struct FormatInterpolatedStringHandler

Constructors

Name Description
FormatInterpolatedStringHandler(Int32, Int32) Initializes a new instance of the FormatInterpolatedStringHandler struct.

Methods

Name Description
AppendFormatted<T>(T) Appends a formatted value to the message.
AppendFormatted<T>(IEnumerable<T>) Appends a formatted enumerable to the message.
AppendFormatted(String, String) Appends a formatted string value to the message using the specified format.
AppendLiteral(String) Appends a literal string to the message.
ToString() Returns the formatted message as a string.