Core.Choice<'T1,'T2,'T3,'T4,'T5,'T6> 联合 (F#)
含有 6 个选项的活动模式的帮助器类型。
命名空间/模块路径: Microsoft.FSharp.Core
程序集:FSharp.Core(在 FSharp.Core.dll 中)
[<StructuralEquality>]
[<StructuralComparison>]
type Choice<'T1,'T2,'T3,'T4,'T5,'T6> =
| Choice1Of6 of 'T1
| Choice2Of6 of 'T2
| Choice3Of6 of 'T3
| Choice4Of6 of 'T4
| Choice5Of6 of 'T5
| Choice6Of6 of 'T6
with
interface IStructuralEquatable
interface IComparable
interface IComparable
interface IStructuralComparable
end
联合用例
Case |
说明 |
---|---|
'T1 的 Choice1Of6 |
第一个选择。 |
'T2 的 Choice2Of6 |
第二个选择。 |
'T3 的 Choice3Of6 |
第三个选择。 |
'T4 的 Choice4Of6 |
第四个选择。 |
'T5 的 Choice5Of6 |
第五个选项。 |
'T6 的 Choice6Of6 |
第六个选项。 |
平台
Windows 7、Windows Vista SP2、Windows XP SP3、Windows XP x64 SP2、Windows Server 2008 R2、Windows Server 2008 SP2、Windows Server 2003 SP2
版本信息
F# 运行时
受以下版本支持:2.0、4.0
Silverlight
受以下版本支持:3