共用方式為


Half.TryParse 方法

定義

多載

TryParse(String, Half)

將數位的字串表示轉換為對等的半精確度浮點。 傳回成功。

TryParse(String, NumberStyles, IFormatProvider, Half)

將數位的字串表示轉換為對等的半精確度浮點。 傳回成功。

TryParse(String, Half)

將數位的字串表示轉換為對等的半精確度浮點。 傳回成功。

public static bool TryParse (string s, out OpenTK.Half result);
static member TryParse : string *  -> bool

參數

s
String

要轉換之數位的字串表示。

result
Half

要寫入的 Half 實例。

傳回

成功。

適用於

TryParse(String, NumberStyles, IFormatProvider, Half)

將數位的字串表示轉換為對等的半精確度浮點。 傳回成功。

public static bool TryParse (string s, System.Globalization.NumberStyles style, IFormatProvider provider, out OpenTK.Half result);
static member TryParse : string * System.Globalization.NumberStyles * IFormatProvider *  -> bool

參數

s
String

要轉換之數位的字串表示。

style
NumberStyles

會指定 s 的格式。

provider
IFormatProvider

文化特性 (Culture) 特有的格式資訊。

result
Half

要寫入的 Half 實例。

傳回

成功。

適用於