Need overloaded properties... kinda
Ok here is the deal, I have a class CProcess which has the responsibility to process another class called CList
I declare it like this:
dim myProcess as new CProcess
dim myList as new CList("1","7")
myProcess.List = myList <--- List is a property of CProcess
Now, I have another type I also want the CProcess class to handle which is called CListCollection (a class which inherited ArrayList). Can I overload the property List so I will handle both types?? I could do it with another property but it doesn't look good I think...
I and can only overload properties if they have different paramaters, not different return types
OR
which is really the best way to solve this?
kind regards
Henrik