H
hazz
I would like to call a generic method that will pass back a generic object
private object getBO(int ID)
{return specific_bo;}
rather than returning a specific business object
private specific_BO getBO(int objID)
{return specific_bo;}
so I can do this;
switch(ID) {
case(int)genericID.CodeID1:
BO1 obo = getBO(ID);
break;
case(int)genericID.CodeID2:
BO2 obo = getBO(ID);
break;
case(int)genericID.CodeID3
BO3 obo = getBO(ID);
break;
Does this make sense to use the switch and cast each BO separately at the
caller to so I don't have to have a separate method for each specific
business object?
Thanks, -hazz
private object getBO(int ID)
{return specific_bo;}
rather than returning a specific business object
private specific_BO getBO(int objID)
{return specific_bo;}
so I can do this;
switch(ID) {
case(int)genericID.CodeID1:
BO1 obo = getBO(ID);
break;
case(int)genericID.CodeID2:
BO2 obo = getBO(ID);
break;
case(int)genericID.CodeID3
BO3 obo = getBO(ID);
break;
Does this make sense to use the switch and cast each BO separately at the
caller to so I don't have to have a separate method for each specific
business object?
Thanks, -hazz