单声道:有没有System.Tuple? [英] Mono : is there a System.Tuple?
本文介绍了单声道:有没有System.Tuple?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我试图做单声道C#和F#之间的互操作一些。是否有单声道C#中的System.Tuple?我可以看到一个在Mono.CSharp,但似乎不具有相同的类型为F#(一个'* B')。因此,
(一)是否有单C#
或A System.Tuple(二)是否有单声道C#和F#元组之间的投<? / p>
解决方案
是单声道支持元组
键入。我知道这是在4.0,但由于2.6版本,我已经看到了它的可用性意见。
- 的元组文档
I am trying to do some interop between C# and F# in Mono. Is there a System.Tuple in Mono C#? I can see the one in Mono.CSharp, but that doesn't seem to be the same type as F# (a' * b'). So,
(a) Is there a System.Tuple in Mono C# or (b) Is there a cast between tuples in Mono C# and F#?
解决方案
Yes Mono supports a Tuple
type. I know it's in 4.0 but I've seen comments of it's availability since version 2.6.
这篇关于单声道:有没有System.Tuple?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文