共用方式為


Quotations.DerivedPatterns 模組 (F#)

包含要分析 F# 運算式物件的一組衍生 F# 現用模式

**命名空間/模組路徑:**Microsoft.FSharp.Quotations

組件:FSharp.Core (在 FSharp.Core.dll 中)

module DerivedPatterns

現用模式

現用模式

描述

AndAlso : Expr -> (Expr * Expr) option

辨識 a && b. 形式的運算式

應用程式 : Expr -> (Expr * Expr list list) option

辨識運算式,這些運算式表示 (可能是局部調用或 Tuple) 第一級函式值的套用。

Bool : Expr -> bool option

辨識常數布林運算式。

Byte : Expr -> byte option

辨識常數位元組運算式。

Char : Expr -> char option

辨識常數 Unicode 字元運算式。

Double : Expr -> float option

辨識常數 64 位元浮點數運算式。

Int16 : Expr -> int16 option

辨識常數 int16 運算式。

Int32 : Expr -> int32 option

辨識常數 int32 運算式。

Int64 : Expr -> int64 option

辨識常數 int64 運算式。

Lambdas : Expr -> (Var list list * Expr) option

辨識運算式,這些運算式表示 (可能是局部調用或 Tuple) 第一級函式值。

MethodWithReflectedDefinition : MethodBase -> Expr option

辨識方法,這些方法具有相關聯的 ReflectedDefinition。

OrElse : Expr -> (Expr * Expr) option

辨識 a || b. 形式的運算式

PropertyGetterWithReflectedDefinition : PropertyInfo -> Expr option

辨識模組中的屬性 getter 或值,這些屬性 getter 或值具有相關聯的 ReflectedDefinition。

PropertySetterWithReflectedDefinition : PropertyInfo -> Expr option

辨識屬性 setter,這些屬性 setter 具有相關聯的 ReflectedDefinition。

SByte : Expr -> sbyte option

辨識常數帶正負號的位元組運算式。

Single : Expr -> single option

辨識常數 32 位元浮點數運算式。

SpecificCall : Expr -> Expr -> (Expr option * Type list * Expr list) option

參數化現用模式,用來辨識對指定之函式或方法的呼叫。 傳回的項目是選擇性目標物件 (如果目標是執行個體方法則存在)、泛型型別具現化 (如果目標是泛型具現化則不是空的) 和函式或方法的引數。

字串 : Expr -> string option

辨識常數字串運算式。

UInt16 : Expr -> uint16 option

辨識常數不帶正負號的 int16 運算式。

UInt32 : Expr -> uint32 option

辨識常數不帶正負號的 int32 運算式。

UInt64 : Expr -> uint64 option

辨識常數不帶正負號的 int64 運算式。

Unit : Expr -> unit option

辨識 () 常數運算式。

平台

Windows 8 中, Windows 7, Windows Server 2012 上, Windows Server 2008 R2

版本資訊

F# 核心程式庫版本

支援版本:2.0, 4.0,可攜式執行檔 (PE)。

請參閱

參考

Microsoft.FSharp.Quotations 命名空間 (F#)