Megosztás a következőn keresztül:


InterpolatedStringArgumentPlaceholderKind Enum

Definition

public enum InterpolatedStringArgumentPlaceholderKind
type InterpolatedStringArgumentPlaceholderKind = 
Public Enum InterpolatedStringArgumentPlaceholderKind
Inheritance
InterpolatedStringArgumentPlaceholderKind

Fields

Name Value Description
CallsiteArgument 0

This is a placeholder for an argument from the containing method call, indexer access, or object creation. The corresponding argument index is accessed in ArgumentIndex.

CallsiteReceiver 1

This is a placeholder for the receiver of the containing method call, indexer access, or object creation.

TrailingValidityArgument 2

This is a placeholder for the trailing bool out parameter of the interpolated string handler type. This bool controls whether the conditional evaluation for the rest of the interpolated string should be run after the constructor returns.

Applies to