PinnedVariableExpressionDerive Method

Applies a given composite format string to both AsEntered and Preprocessed fields.

Definition

Namespace: VisualGDBExtensibility.LiveWatch
Assembly: VisualGDBExtensibility (in VisualGDBExtensibility.dll) Version: 5.6.109.1 (5.6.109.4849)
C#
public PinnedVariableExpression Derive(
	string format
)

Parameters

format  String
The composite format string.

Return Value

PinnedVariableExpression
The expression derived using the given format.

Example

This method is used to derive subexpressions from a given expression, e.g.
C#
var expression = new PinnedVariableExpression("TIMER1", "(Timer *)0x1234");
var controlRegister = expression.Derive("({0})->CR");
Debug.Assert(controlRegister.AsEntered == "(TIMER1)->CR");
Debug.Assert(controlRegister.Preprocessed == "((Timer *)0x1234)->CR");

See Also