N
Nerd
I have a function in C3 that returns different object types depending
on the paramter passed. What is the best way to declare the return type
if the objects types doesnot have a common parent class.
Can I use System.Object as the return type?
something like this
if (param1 =="1")
{
return(new object1())
}
else
if (param1 =="2")
{
return(new object2())
}
on the paramter passed. What is the best way to declare the return type
if the objects types doesnot have a common parent class.
Can I use System.Object as the return type?
something like this
if (param1 =="1")
{
return(new object1())
}
else
if (param1 =="2")
{
return(new object2())
}