ISpanParsable<TSelf> 接口 
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
定义一种机制,用于将字符范围分析为值。
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) | 尝试将字符范围解析为值。 |