Anéeka 2019-04-19 00:55 采纳率: 100%
浏览 316
已结题

严格模式下VB的lambda表达式怎么写?

Dim increment1 = Function(x) x + 1
在option strict:on+option infer:off的环境下无法通过编译

  • 写回答

1条回答 默认 最新

  • threenewbee 2019-04-19 09:38
    关注

    Dim increment1 As Func(Of Integer, Of Integer) = Func(x As Integer) x + 1

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

问题事件

  • 已结题 (查看结题原因) 11月12日