How to explicitly discard an out argument?

后端 未结 8 1029
情歌与酒
情歌与酒 2020-12-09 14:30

I\'m making a call:

myResult = MakeMyCall(inputParams, out messages);

but I don\'t actually care about the messages. If it was an input pa

8条回答
  •  自闭症患者
    2020-12-09 14:59

    The Visual Basic compiler does this by creating a dummy variable. C# could do it, if you can convince Microsoft its a good idea.

提交回复
热议问题