G
Guest
I have a base class called DataElement. Then I have several classes that
inherit from this class, such as Aor, Aor0, plus a bunch more. Each of these
classes that inherit from DataElement have a Shared Function and an instance
method that returns a List(of Aor) or List(of Aor0), etc., see below for
basic class structures.
Public Class DataElement
End Class
Public Class Aor
Inherits DataElement
Public Function LoadFullList() as List(of Aor)
Return GetFullList()
End Function
Public Shared Function GetFullList() as List(of Aor)
End Function
End Class
Then someplace else in the my application I have a screen that works with
DataElements and needs to call the GetFullList or LoadFullList and I can't
figure out a way to accomplish this. I could put the LoadFullList method
into the DataElement class, but then the return type would have to be List(of
DataElement) and then I wouldn't be able to handle the returned list in the
method that I want because it wouldn't be List(of Aor).
Can someone help me out here.
inherit from this class, such as Aor, Aor0, plus a bunch more. Each of these
classes that inherit from DataElement have a Shared Function and an instance
method that returns a List(of Aor) or List(of Aor0), etc., see below for
basic class structures.
Public Class DataElement
End Class
Public Class Aor
Inherits DataElement
Public Function LoadFullList() as List(of Aor)
Return GetFullList()
End Function
Public Shared Function GetFullList() as List(of Aor)
End Function
End Class
Then someplace else in the my application I have a screen that works with
DataElements and needs to call the GetFullList or LoadFullList and I can't
figure out a way to accomplish this. I could put the LoadFullList method
into the DataElement class, but then the return type would have to be List(of
DataElement) and then I wouldn't be able to handle the returned list in the
method that I want because it wouldn't be List(of Aor).
Can someone help me out here.