I have a base class that is derived from an existing class and i need to
have ANOTHER class that is linked to the objects created in their
class. OK icant explain it properly. Here is part of the code.
Ok i assume you have read the code by now. So, without creating a new
dictionary and running the same keys with different objects as the
values. How else can i make it so when i .Add in DictinaryDraw, that i
can access the properties and methods individually for each object in
the dictionary? In other words i need a new instance of the reference
(for properties and methods) to be accessable via the object within the
dictionary. so something like this
dictionarydraw(index).referenceproperty. I understand i probably need to
inherit drawreference into the object im adding into the dictionary,
except i cant because its a system class.
Imports System.Collections
Public Class DictionaryDraw
Inherits DictionaryBase
Private indexLast As Integer = -1
Public Function Add() As Integer
Do While MyBase.Dictionary.Contains(indexLast)
indexLast = indexLast + 1
Loop
MyBase.Dictionary.Add(indexLast + 1, New Drawing2D.GraphicsPath())
End Function
End Class
Public Class DrawReference
#Region "Declarations"
'All my declarations in here
#End Region
#Region "Properties"
'All my properties in here
#End Region
End Class