Unchecked.compare<'T> 函式 (F#)
Perform generic comparison on two values where the type of the values is not statically required to have the comparison constraint.
Namespace/Module Path: Microsoft.FSharp.Core.Operators.Unchecked
組件:FSharp.Core (在 FSharp.Core.dll 中)
// Signature:
compare : 'T -> 'T -> int
// Usage:
compare lhs rhs
參數
lhs
型別:'T要比較的第一個值。
rhs
型別:'T要比較的第二個值。
傳回值
比較的結果。 The result follows the convention for comparison results: -1 if lhs is less then rhs; 1 if lhs is greater than rhs; 0 if they are equal.
備註
這個函式是名為 Compare中 已編譯的組件。 如果從一個語言,F # 以外,或透過反映存取函式使用這個名稱。
平台
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