Practical example where Tuple can be used in .Net 4.0?

后端 未结 19 722
后悔当初
后悔当初 2020-12-04 07:44

I have seen the Tuple introduced in .Net 4 but I am not able to imagine where it can be used. We can always make a Custom class or Struct.

19条回答
  •  鱼传尺愫
    2020-12-04 08:01

    Tuples are heavily used in functional languages which can do more things with them, now F# is a 'official' .net language you may want to interoperate with it from C# and pass them between code written in two languages.

提交回复
热议问题