1

Possible Duplicate:
Optional Output Parameters

I am currently working in a module wherein I need to add a new out parameter to a function which has been used in so many places! Instead of adding that new parameter everywhere i wish to make it as optional. Is there a way to use out parameter as an optional parameter? Please help me.

Community
  • 1
  • 1
Saravana
  • 23
  • 6

1 Answers1

3

I don't think so.

But you can just overload the function with a new one using the out-parameter. This way you old code works as expected and the new one can use the now overload.

Random Dev
  • 51,810
  • 9
  • 92
  • 119