FormattableString.CurrentCulture(FormattableString) 메서드

정의

현재 문화권의 규칙을 사용하여 인수가 형식 지정된 결과 문자열을 반환합니다.

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

매개 변수

formattable
FormattableString

형식을 지정할 문자열입니다.

반환

현재 문화권의 규칙을 사용하여 현재 인스턴스의 형식을 지정할 때 얻게 되는 문자열입니다.

설명

이 정적 메서드는 다음을 통해 C# 또는 F#으로 가져올 수 있습니다.

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} }}"

적용 대상