"PVS" <ab*************@yahoo.com> wrote in message
news:<O8**************@tk2msftngp13.phx.gbl>...
Jon,
Does the "params" modifier allow passing parameters of different
datatypes?
I think it accepts only single datatype array. If yes, how to pass that?
Define it of the array type object. Because all types inherit from object,
you can pass anything to it.
Something like
void method( params object[] args ) {
}
"PVS" <ab*************@yahoo.com> wrote in message
news:<O8**************@tk2msftngp13.phx.gbl>...
Jon,
Does the "params" modifier allow passing parameters of different
datatypes?
I think it accepts only single datatype array. If yes, how to pass that?
Define it of the array type object. Because all types inherit from object,
you can pass anything to it.
Something like
void method( params object[] args ) {
}