Calling delegate with multiple functions having return values

前端 未结 3 1213
渐次进展
渐次进展 2021-01-04 22:18

I am trying to understand concept of delegates and have got a query. Suppose that we have a delegate defined with return type as int and accepting in 2 parameters of type in

3条回答
  •  刺人心
    刺人心 (楼主)
    2021-01-04 23:10

    You will get the return value of the last method added to the multicast delegate. In this case, you will get the return value of Multiply.

    See the documentation for more on this: https://msdn.microsoft.com/en-us/library/ms173172.aspx

提交回复
热议问题