閱讀英文

共用方式為


Debug.AssertInterpolatedStringHandler 結構

定義

提供插入 Assert(Boolean) 字串處理程式,只有在判斷提示失敗時才會執行格式設定。

C#
public struct Debug.AssertInterpolatedStringHandler
繼承
Debug.AssertInterpolatedStringHandler

建構函式

方法

AppendFormatted(Object, Int32, String)

將指定的值寫入處理程式。

AppendFormatted(ReadOnlySpan<Char>)

將指定的字元範圍寫入處理程式。

AppendFormatted(ReadOnlySpan<Char>, Int32, String)

將指定的字元字串寫入處理程式。

AppendFormatted(String)

將指定的值寫入處理程式。

AppendFormatted(String, Int32, String)

將指定的值寫入處理程式。

AppendFormatted<T>(T)

將指定的值寫入處理程式。

AppendFormatted<T>(T, Int32)

將指定的值寫入處理程式。

AppendFormatted<T>(T, Int32, String)

將指定的值寫入處理程式。

AppendFormatted<T>(T, String)

將指定的值寫入處理程式。

AppendLiteral(String)

將指定的字串寫入處理程式。

適用於

產品 版本
.NET 6, 7, 8, 9