IntrinsicOperators.( || ) 函数 (F#)

计算布尔“或”运算。在用作二元运算符时,只会按需计算右侧的值。

命名空间/模块路径: Microsoft.FSharp.Core.LanguagePrimitives.IntrinsicOperators

程序集:FSharp.Core(在 FSharp.Core.dll 中)

// Signature:
( || ) : bool -> bool -> bool

// Usage:
e1 || e2

参数

  • e1
    类型:bool

    第一个值。

  • e2
    类型:bool

    第二个值。

返回值

操作的结果。

平台

Windows 8,Windows 7,Windows server 2012中,Windows server 2008 R2

版本信息

F#核心库版本

支持:2.0,4.0,可移植

请参见

参考

LanguagePrimitives.IntrinsicOperators 模块 (F#)

Core.LanguagePrimitives 模块 (F#)