Development · Native API migration preview · Coverage validation in progress Published release →

API Browser

Method

ToString

abstract virtual func ToString(format: string, culture: Culture) -> string

Declaring type: Formattable
Module: System
Assembly: System.Runtime.dll
Source file: Formattable.rvn

Defined by Formattable.ToString · Required implementation (no default).

Interface implementation: Required implementation (no default).

Formats using a non-null format and culture; empty requests the type's default representation. Implementations validate specifiers. Culture is explicit; custom format providers are not supported. String.Format without a culture resolves Culture.Current once, when a formattable item is first used.

Parameters

Name Type Description
format String
culture Culture

Return value

String