IVisualizerObjectProvider3.GetObject<T> Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets the data using GetData() and then tries to deserialize it to the specified type.
public T? GetObject<T> ();
abstract member GetObject : unit -> 'T
Public Function GetObject(Of T) () As T
Type Parameters
- T
Returns
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(Stream)/ReplaceObject(Object) or TransferData(Stream)/TransferObject<T>(Object).
Examples
public class DebuggerSide : DialogDebuggerVisualizer
{
override protected void Show(IDialogVisualizerService windowService, IVisualizerObjectProvider objectProvider)
{
IVisualizerObjectProvider3 objectProvider3 = (IVisualizerObjectProvider3)objectProvider;
MessageBox.Show(objectProvider3.GetObject<object>().ToString());
}
// Other DebuggerSide methods omitted for clarity.
}