Hi,
Are the parameters the same type? I mean is argument1 always the same type
?
When you say that you do not need the second parameter, are you saying that
the method does not require it?
or that you know that the result will be the same no matter what value you
use? if so you should create an overload method ( in case you have access to
the code )
Remember that you have to pass a value to each parameter so even if you do
not use it you need to pass something.
You cannot omit a method, you have to supply a value for each parameter.
cheers,
--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation
"Beenish Sahar Khan" <be**********@kolachi.net> wrote in message
news:ue****************@TK2MSFTNGP12.phx.gbl...
I'm using reflection to invoke some methods,
now the general patteren of the function defination is
private void FunctionName( argument1 , argument2)
for some functions i don't need the argument2 but for some i do...is there
any way using reflection to invoke the method but omit the last argument
in some function definations while for other we use it.
regards,
Beenish Khan