D
Duckkiller53
Guest
Could someone help with the following:
I have been working to create custom data visualizers for various types. I have successfully created a visualizer for Data Tables and now I would like to create one for Collections, IEnumerable's etc.
I have been struggling with what to use for the target in the Assembly and how to acquire the object passed into the visualizer. When I call objectProvider.GetObject() I continually get an error stating that the object is not serializable.
Would anyone know what I'm doing wrong or how to do this for Collection/IEnumerable. See code snippets below. Note: I'm first creating a collection with a linq query. ie: Dim col = from c in CustTable select c, then calling EnumerableVisualizer.EnumVisualizer.TestShowVisualizer(col) to test.
Thanks
Dave.
<Assembly: System.Diagnostics.DebuggerVisualizer(GetType(EnumVisualizer), GetType(VisualizerObjectSource), Target:=GetType(Object), Description:="ERNIE Data Visualizer")>
Protected Overrides Sub Show(ByVal windowService AsIDialogVisualizerService,ByVal objectProvider AsIVisualizerObjectProvider)
Try
'Dim test = CType(objectProvider.GetObject(), IEnumerable)
Dim obj =objectProvider.GetObject()
Catch
ex AsException
MessageBox.Show(ex.ToString(),"Visualizer Error",MessageBoxButtons.OK)
End Try
End Sub
Duckkiller53
Continue reading...
I have been working to create custom data visualizers for various types. I have successfully created a visualizer for Data Tables and now I would like to create one for Collections, IEnumerable's etc.
I have been struggling with what to use for the target in the Assembly and how to acquire the object passed into the visualizer. When I call objectProvider.GetObject() I continually get an error stating that the object is not serializable.
Would anyone know what I'm doing wrong or how to do this for Collection/IEnumerable. See code snippets below. Note: I'm first creating a collection with a linq query. ie: Dim col = from c in CustTable select c, then calling EnumerableVisualizer.EnumVisualizer.TestShowVisualizer(col) to test.
Thanks
Dave.
<Assembly: System.Diagnostics.DebuggerVisualizer(GetType(EnumVisualizer), GetType(VisualizerObjectSource), Target:=GetType(Object), Description:="ERNIE Data Visualizer")>
Protected Overrides Sub Show(ByVal windowService AsIDialogVisualizerService,ByVal objectProvider AsIVisualizerObjectProvider)
Try
'Dim test = CType(objectProvider.GetObject(), IEnumerable)
Dim obj =objectProvider.GetObject()
Catch
ex AsException
MessageBox.Show(ex.ToString(),"Visualizer Error",MessageBoxButtons.OK)
End Try
End Sub
Duckkiller53
Continue reading...