G
Guest
Hi,
I was wondering if there was a way to create a method that would accept an
unlimited number of objects in its parameters without specifying ahead of
time how many objects may be passed. One time I might want to pass just one
object, another time 5 or ten. But I don't want to create separate
overloaded methods for each scenario. Is there a way to do this? How about
another way to get something of the same effect without creating numerous
overloaded methods?
Thanks,
Nathan
I was wondering if there was a way to create a method that would accept an
unlimited number of objects in its parameters without specifying ahead of
time how many objects may be passed. One time I might want to pass just one
object, another time 5 or ten. But I don't want to create separate
overloaded methods for each scenario. Is there a way to do this? How about
another way to get something of the same effect without creating numerous
overloaded methods?
Thanks,
Nathan