Edit

Share via


ISpanParsable<TSelf> Interface

Definition

Defines a mechanism for parsing a span of characters to a value.

C#
public interface ISpanParsable<TSelf> : IParsable<TSelf> where TSelf : ISpanParsable<TSelf>

Type Parameters

TSelf

The type that implements this interface.

Derived
Implements

Methods

Parse(ReadOnlySpan<Char>, IFormatProvider)

Parses a span of characters into a value.

TryParse(ReadOnlySpan<Char>, IFormatProvider, TSelf)

Tries to parse a span of characters into a value.

Applies to

Product Versions
.NET 7, 8, 9