Debug.WriteIfInterpolatedStringHandler(Int32, Int32, Boolean, Boolean) Constructor

Definition

Creates an instance of the handler.

C#
public WriteIfInterpolatedStringHandler(int literalLength, int formattedCount, bool condition, out bool shouldAppend);

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 Boolean passed to the Debug 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

Product Versions
.NET 6, 7, 8, 9, 10