IVisualizerObjectProvider.GetObject Method ()

 
Namespace:   Microsoft.VisualStudio.DebuggerVisualizers
Assembly:  Microsoft.VisualStudio.DebuggerVisualizers (in Microsoft.VisualStudio.DebuggerVisualizers.dll)

object GetObject()

Return Value

Type: System.Object

The data object being visualized. This is actually a debugger-side copy of the object you are visualizing in the debuggee. If you modify the contents of this object, the changes will not be reflected back in the debuggee unless you use the ReplaceData/ReplaceObject or TransferData/TransferObject.

Calls GetData and deserializes the data into an object.

public class DebuggerSide : DialogDebuggerVisualizer
{
   override protected void Show(IDialogVisualizerService windowService, IVisualizerObjectProvider objectProvider)
   {
      MessageBox.Show(objectProvider.GetObject().ToString());

// Other DebuggerSide methods ommitted for clarity.
}
Return to top
Show: