ExpressionValue Class

Represents a value of an expression reported by GDB, such as 'true', '42' or '0x1000 "Test string"'. This class is never instantiated directly. Instead Integral, Custom or Composite classes are used.

Definition

Namespace: VisualGDBExpressions
Assembly: VisualGDBExpressions (in VisualGDBExpressions.dll) Version: 5.6.109.1 (5.6.109.4849)
C#
public abstract class ExpressionValue
Inheritance
Object    ExpressionValue
Derived

Remarks

VisualGDB uses this class instead of just passing around string values due to the following reasons:
  • When the user switches between decimal and hexadecimal mode in Visual Studio, no re-evaluation is required.
  • When the user enters an expression in the 'Memory' window, VisualGDB will try to extract the address by checking if the value is Integral.
  • VisualGDB automatically replaces the Composite values with {Member1 = value1, Member2 = value2, ...} strings.

Constructors

ExpressionValueInitializes a new instance of the ExpressionValue class

Methods

InsertGroupSeparator 
ToString Formats the value into a user-friendly string.
(Overrides ObjectToString)
ToString(ValueFormattingOptions) Formats the value into a user-friendly string. If the value is integral, the specified radix is used.

Fields

VSPropertyObject Optional custom implementation of the IDebugProperty3 interface responsible for handling GetCustomViewerCount(), GetCustomViewerList(), CreateObjectID() and DestroyObjectID().

See Also