Прочитать на английском Изменить

Поделиться через


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

Definition

Important

Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

Creates an instance of the handler.

public AssertInterpolatedStringHandler(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

Продукт Версии
.NET 6, 7, 8, 9, 10