R
Robert
A typical declaration in a current project:
Dim Graph As New QuickGraph.UndirectedGraph(Of PointVertexType, TaggedEdge(Of PointVertexType, Integer))
This gets passed as a parameter to several subroutines.
I am sick of typing this verbose redundant declaration.
Is there an easy way to define this once at the top of a module and then
reuse this definition in all the other ByRefs?
Such as:
Dim MyGraphType as ?!? = QuickGraph.UndirectedGraph(Of PointVertexType, TaggedEdge(Of PointVertexType, Integer))
Function MyFn(Graph as MyGraphType)
Function MyFn2(Graph as MyGraphType, FnState)
Function MyFn3(Graph as MyGraphType, Fn2State)
With this I could change the type in one place, rather than dozens..
Thanks in advance.
Dim Graph As New QuickGraph.UndirectedGraph(Of PointVertexType, TaggedEdge(Of PointVertexType, Integer))
This gets passed as a parameter to several subroutines.
I am sick of typing this verbose redundant declaration.
Is there an easy way to define this once at the top of a module and then
reuse this definition in all the other ByRefs?
Such as:
Dim MyGraphType as ?!? = QuickGraph.UndirectedGraph(Of PointVertexType, TaggedEdge(Of PointVertexType, Integer))
Function MyFn(Graph as MyGraphType)
Function MyFn2(Graph as MyGraphType, FnState)
Function MyFn3(Graph as MyGraphType, Fn2State)
With this I could change the type in one place, rather than dozens..
Thanks in advance.