Edit

Share via


ISpanFormattable Interface

Definition

Provides functionality to format the string representation of an object into a span.

C#
public interface ISpanFormattable : IFormattable
Derived
Implements

Methods

ToString(String, IFormatProvider)

Formats the value of the current instance using the specified format.

(Inherited from IFormattable)
TryFormat(Span<Char>, Int32, ReadOnlySpan<Char>, IFormatProvider)

Tries to format the value of the current instance into the provided span of characters.

Applies to

Product Versions
.NET 6, 7, 8, 9