Čitajte na engleskom Uređivanje

Dijeli putem


ISpanFormattable Interface

Definition

Important

Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

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

Proizvod Verzije
.NET 6, 7, 8, 9, 10