Edit

Share via


Guard.IsTrueInterpolatedStringHandler(Int32, Int32, Boolean, Boolean) Constructor

Definition

Creates an instance of the handler.

public IsTrueInterpolatedStringHandler(int literalLength, int formattedCount, bool condition, out bool shouldAppend);
new CommunityToolkit.Diagnostics.Guard.IsTrueInterpolatedStringHandler : int * int * bool * bool -> CommunityToolkit.Diagnostics.Guard.IsTrueInterpolatedStringHandler
Public Sub New (literalLength As Integer, formattedCount As Integer, condition As Boolean, ByRef shouldAppend As Boolean)

Parameters

literalLength
Int32

The number of constant characters outside of interpolation expressions in the interpolated string.

formattedCount
Int32

The number of interpolation expressions in the interpolated string.

condition
Boolean

The condition passed to the Guard method.

shouldAppend
Boolean

A value indicating whether formatting should proceed.

Remarks

This is intended to be called only by compiler-generated code. Arguments are not validated as they'd otherwise be for members intended to be used directly.

Applies to