ISpanParsable<TSelf> 介面

定義

定義將字元範圍剖析為值的機制。

generic <typename TSelf>
 where TSelf : ISpanParsable<TSelf>public interface class ISpanParsable : IParsable<TSelf>
public interface ISpanParsable<TSelf> : IParsable<TSelf> where TSelf : ISpanParsable<TSelf>
type ISpanParsable<'Self (requires 'Self :> ISpanParsable<'Self>)> = interface
    interface IParsable<'Self (requires 'Self :> ISpanParsable<'Self>)>
Public Interface ISpanParsable(Of TSelf)
Implements IParsable(Of TSelf)

類型參數

TSelf

實作這個介面的類型。

衍生
實作

方法

Parse(ReadOnlySpan<Char>, IFormatProvider)

將字元範圍剖析為值。

TryParse(ReadOnlySpan<Char>, IFormatProvider, TSelf)

嘗試將字元範圍剖析為值。

適用於