Can this be done with Action or Func or Lambda expressions?
Posted on 2010-11-29
I want to take a MsgBox statement such as:
result = MsgBox("I need help!", MsgBoxStyle.OkCancel)
and put it inside a function - let's call it MyFunc - that returns a MsgBoxResult and be able to call it with a statement like this:
result = MyFunc(MsgBox("I need help!", MsgBoxStyle.OkCancel))
I don't understand how to specify MyFunc. Can anyone help?