Assert.AssertIsNotNullInterpolatedStringHandler 结构

定义

提供重载使用的 Assert.IsNotNull 内插字符串处理程序,该处理程序仅在断言失败时分配消息并设置消息格式。

[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
public readonly struct Assert.AssertIsNotNullInterpolatedStringHandler
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
[System.Runtime.CompilerServices.InterpolatedStringHandler]
[System.Runtime.CompilerServices.IsReadOnly]
[System.Runtime.CompilerServices.Nullable(0)]
public readonly struct Assert.AssertIsNotNullInterpolatedStringHandler
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
[System.Runtime.CompilerServices.InterpolatedStringHandler]
[System.Runtime.CompilerServices.IsReadOnly]
[System.Runtime.CompilerServices.Nullable(0)]
[System.Diagnostics.StackTraceHidden]
public readonly struct Assert.AssertIsNotNullInterpolatedStringHandler
[<System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)>]
type Assert.AssertIsNotNullInterpolatedStringHandler = struct
[<System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)>]
[<System.Runtime.CompilerServices.InterpolatedStringHandler>]
[<System.Runtime.CompilerServices.IsReadOnly>]
[<System.Runtime.CompilerServices.Nullable(0)>]
type Assert.AssertIsNotNullInterpolatedStringHandler = struct
[<System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)>]
[<System.Runtime.CompilerServices.InterpolatedStringHandler>]
[<System.Runtime.CompilerServices.IsReadOnly>]
[<System.Runtime.CompilerServices.Nullable(0)>]
[<System.Diagnostics.StackTraceHidden>]
type Assert.AssertIsNotNullInterpolatedStringHandler = struct
Public Structure Assert.AssertIsNotNullInterpolatedStringHandler
继承
Assert.AssertIsNotNullInterpolatedStringHandler
属性

注解

此类型供编译器使用;用户不应直接引用它。

构造函数

名称 说明
Assert.AssertIsNotNullInterpolatedStringHandler(Int32, Int32, Object, Boolean)

初始化 结构的新实例 Assert.AssertIsNotNullInterpolatedStringHandler

方法

名称 说明
AppendFormatted(Object, Int32, String)

提供重载使用的 Assert.IsNotNull 内插字符串处理程序,该处理程序仅在断言失败时分配消息并设置消息格式。

AppendFormatted(ReadOnlySpan<Char>, Int32, String)

提供重载使用的 Assert.IsNotNull 内插字符串处理程序,该处理程序仅在断言失败时分配消息并设置消息格式。

AppendFormatted(ReadOnlySpan<Char>)

提供重载使用的 Assert.IsNotNull 内插字符串处理程序,该处理程序仅在断言失败时分配消息并设置消息格式。

AppendFormatted(String, Int32, String)

提供重载使用的 Assert.IsNotNull 内插字符串处理程序,该处理程序仅在断言失败时分配消息并设置消息格式。

AppendFormatted(String)

提供重载使用的 Assert.IsNotNull 内插字符串处理程序,该处理程序仅在断言失败时分配消息并设置消息格式。

AppendFormatted<T>(T, Int32, String)

提供重载使用的 Assert.IsNotNull 内插字符串处理程序,该处理程序仅在断言失败时分配消息并设置消息格式。

AppendFormatted<T>(T, Int32)

提供重载使用的 Assert.IsNotNull 内插字符串处理程序,该处理程序仅在断言失败时分配消息并设置消息格式。

AppendFormatted<T>(T, String)

提供重载使用的 Assert.IsNotNull 内插字符串处理程序,该处理程序仅在断言失败时分配消息并设置消息格式。

AppendFormatted<T>(T)

提供重载使用的 Assert.IsNotNull 内插字符串处理程序,该处理程序仅在断言失败时分配消息并设置消息格式。

AppendLiteral(String)

提供重载使用的 Assert.IsNotNull 内插字符串处理程序,该处理程序仅在断言失败时分配消息并设置消息格式。

适用于