Polymorphism and Connections

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Christopher Weaver

    #1

    Polymorphism and Connections

    I have the following:

    private TConnection.dsT asks dsTasks1;
    private TConnection.dsA ctivity dsActivity1;

    and:

    public void LoadDataSet()
    {
    TConnection.dsT asks objDataSetTemp;
    objDataSetTemp = new TestConnection. dsTasks();
    try
    {
    this.FillDataSe t(objDataSetTem p);
    //etc.

    I would like to be able to pass dsTasks1 and dsActivity1 to the same
    function but I don't know what their common superclass is. Within the
    properties window it appears that they are both of the class
    IDispDataVwObje ct. Also, within the function LoadDataSet, would I be able
    to create a new instance of the class passed in if it was cast as its
    superclass.

    For future reference, where can I find a hierarchy for all the classes used
    in this environment?


Working...