共用方式為


PlatformHelper.CompareMacVersion(Platform, Platform) 方法

定義

比較兩個平臺值。

public static int CompareMacVersion (this ObjCRuntime.Platform a, ObjCRuntime.Platform b);
static member CompareMacVersion : ObjCRuntime.Platform * ObjCRuntime.Platform -> int

參數

a
Platform

要比較的第一個平臺值。

b
Platform

要比較的第二個平臺值。

傳回

如果第一個平臺早于第二個平臺,則傳回 -1;如果平臺版本相同,則傳回 -1;如果第一個平臺晚于第二個平臺,則傳回 1。

適用於