Assert.AssertCountInterpolatedStringHandler<TItem> Struct

Definition

Provides an interpolated string handler used by HasCount<T>(Int32, IEnumerable<T>, Assert.AssertCountInterpolatedStringHandler<T>, String) and IsEmpty<T>(IEnumerable<T>, Assert.AssertCountInterpolatedStringHandler<T>, String) that only allocates and formats the message when the assertion is failing.

[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
public readonly struct Assert.AssertCountInterpolatedStringHandler<TItem>
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
[System.Runtime.CompilerServices.InterpolatedStringHandler]
[System.Runtime.CompilerServices.IsReadOnly]
[System.Runtime.CompilerServices.Nullable(0)]
public readonly struct Assert.AssertCountInterpolatedStringHandler<TItem>
[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.AssertCountInterpolatedStringHandler<TItem>
[<System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)>]
type Assert.AssertCountInterpolatedStringHandler<'Item> = struct
[<System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)>]
[<System.Runtime.CompilerServices.InterpolatedStringHandler>]
[<System.Runtime.CompilerServices.IsReadOnly>]
[<System.Runtime.CompilerServices.Nullable(0)>]
type Assert.AssertCountInterpolatedStringHandler<'Item> = 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.AssertCountInterpolatedStringHandler<'Item> = struct
Public Structure Assert.AssertCountInterpolatedStringHandler(Of TItem)

Type Parameters

TItem

The type of item in the collection.

Inheritance
Assert.AssertCountInterpolatedStringHandler<TItem>
Attributes

Remarks

This type is intended to be used by the compiler; users should not reference it directly.

Constructors

Name Description
Assert.AssertCountInterpolatedStringHandler<TItem>(Int32, Int32, IEnumerable<TItem>, Boolean)

Initializes a new instance of the Assert.AssertCountInterpolatedStringHandler<TItem> struct.

Assert.AssertCountInterpolatedStringHandler<TItem>(Int32, Int32, Int32, IEnumerable<TItem>, Boolean)

Initializes a new instance of the Assert.AssertCountInterpolatedStringHandler<TItem> struct.

Assert.AssertCountInterpolatedStringHandler<TItem>(Int32, Int32, Int32, Memory<TItem>, Boolean)

Initializes a new instance of the Assert.AssertCountInterpolatedStringHandler<TItem> struct.

Assert.AssertCountInterpolatedStringHandler<TItem>(Int32, Int32, Int32, ReadOnlyMemory<TItem>, Boolean)

Initializes a new instance of the Assert.AssertCountInterpolatedStringHandler<TItem> struct.

Assert.AssertCountInterpolatedStringHandler<TItem>(Int32, Int32, Int32, ReadOnlySpan<TItem>, Boolean)

Initializes a new instance of the Assert.AssertCountInterpolatedStringHandler<TItem> struct.

Assert.AssertCountInterpolatedStringHandler<TItem>(Int32, Int32, Int32, Span<TItem>, Boolean)

Initializes a new instance of the Assert.AssertCountInterpolatedStringHandler<TItem> struct.

Methods

Name Description
AppendFormatted(Object, Int32, String)
AppendFormatted(ReadOnlySpan<Char>, Int32, String)
AppendFormatted(ReadOnlySpan<Char>)
AppendFormatted(String, Int32, String)
AppendFormatted(String)
AppendFormatted<T>(T, Int32, String)
AppendFormatted<T>(T, Int32)
AppendFormatted<T>(T, String)
AppendFormatted<T>(T)
AppendLiteral(String)

Applies to