IParsable<TSelf> 介面
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
定義了一種解析字串至值的機制。
generic <typename TSelf>
where TSelf : IParsable<TSelf>public interface class IParsable
public interface IParsable<TSelf> where TSelf : IParsable<TSelf>
type IParsable<'Self (requires 'Self :> IParsable<'Self>)> = interface
Public Interface IParsable(Of TSelf)
類型參數
- TSelf
是實作此介面的類型。
- 衍生
方法
| 名稱 | Description |
|---|---|
| Parse(String, IFormatProvider) |
解析字串成一個值。 |
| TryParse(String, IFormatProvider, TSelf) |
嘗試將字串解析成一個值。 |