Share via


IInterpolatedStringHandlerCreationOperation.HandlerAppendCallsReturnBool Property

Definition

True if the AppendLiteral or AppendFormatted calls in nested Parts return bool. When that is true, each part will be conditional on the return of the part before it, only being executed when the Append call returns true. False otherwise.

public bool HandlerAppendCallsReturnBool { get; }
member this.HandlerAppendCallsReturnBool : bool
Public ReadOnly Property HandlerAppendCallsReturnBool As Boolean

Property Value

Remarks

when this is true and HandlerCreationHasSuccessParameter is true, then the first part in nested Parts is conditionally run. If this is true and HandlerCreationHasSuccessParameter is false, then the first part is unconditionally run.
Just because this is true or false does not guarantee that all Append calls actually do return boolean values, as there could be dynamic calls or errors. It only governs what the compiler was expecting, based on the first calls it did see.

Applies to