How do i write a function that will accept optional arguments?
ie: so the function can be called
_obj.DoSomething(arg1, arg2, arg3);
or
_obj.DoSomething(arg1);
or simply as
_obj.DoSomething();
how do i set up
public string DoSomething(int arg1, int arg2, int arg3)
etc... without getting the "invalid number of arguments" error ??
thanks in advance
fid
ie: so the function can be called
_obj.DoSomething(arg1, arg2, arg3);
or
_obj.DoSomething(arg1);
or simply as
_obj.DoSomething();
how do i set up
public string DoSomething(int arg1, int arg2, int arg3)
etc... without getting the "invalid number of arguments" error ??
thanks in advance
fid