Skip to content

FormatInterpolatedStringHandler Struct ​

Definition ​

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

c#
public sealed struct FormatInterpolatedStringHandler

View source

Constructors ​

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

Methods ​

NameDescription
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.