Training
Module
Evaluate Boolean expressions to make decisions in C# - Training
Learn the operators and techniques required to evaluate and compare values in your decision statements.
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Important
In Visual Studio 2015, this way of implementing expression evaluators is deprecated. For information about implementing CLR expression evaluators, see CLR expression evaluators and Managed expression evaluator sample.
When the debug engine (DE) calls the expression evaluator (EE), three arguments that are passed to EvaluateSync determine the context for finding and evaluating symbols, as shown in the following table.
Argument | Description |
---|---|
pSymbolProvider |
An IDebugSymbolProvider interface that specifies the symbol handler (SH) to be used to identify the symbol. |
pAddress |
An IDebugAddress interface that specifies the current point of execution. This interface finds the method that contains the code being executed. |
pBinder |
An IDebugBinder interface that finds the value and type of a symbol given its name. |
IDebugParsedExpression::EvaluateSync
returns an IDebugProperty2 interface representing the resulting value and its type.
Training
Module
Evaluate Boolean expressions to make decisions in C# - Training
Learn the operators and techniques required to evaluate and compare values in your decision statements.