FormattableString.CurrentCulture(FormattableString) Methode

Definitie

Retourneert een resultaattekenreeks waarin argumenten worden opgemaakt met behulp van de conventies van de huidige cultuur.

public:
 static System::String ^ CurrentCulture(FormattableString ^ formattable);
public static string CurrentCulture(FormattableString formattable);
static member CurrentCulture : FormattableString -> string
Public Shared Function CurrentCulture (formattable As FormattableString) As String

Parameters

formattable
FormattableString

De tekenreeks die moet worden opgemaakt.

Retouren

De tekenreeks die het resultaat is van het opmaken van het huidige exemplaar met behulp van de conventies van de huidige cultuur.

Opmerkingen

Deze statische methode kan worden geïmporteerd in C# of F# door:

using static System.FormattableString;

''fsharp open type System.FormattableString

Within the scope of that import directive, an interpolated string may be formatted in the current culture by writing, for example:
```csharp
    CurrentCulture($"{{ lat = {latitude}; lon = {longitude} }}");
    CurrentCulture $"{{ lat = {latitude}; lon = {longitude} }}"

Van toepassing op