Is it possible to allow a parameter to be optionally passed to a method ? I'm currently passing a -1 if I want to ignore the parameter, but I'd prefer if I could pass nothing.

eg.

VB Code:
  1. Function doSomething(param1 As Type1, Optional param2 As Type2)
  2.     'do something
  3. End Function