FormattableString.CurrentCulture(FormattableString) Método
Definição
Retorna uma cadeia de caracteres de resultado, em que os argumentos são formatados usando as convenções da cultura atual.Returns a result string in which arguments are formatted by using the conventions of the current culture.
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
Parâmetros
- formattable
- FormattableString
A cadeia de caracteres a ser formatada.The string to be formatted.
Retornos
A cadeia de caracteres que resulta da formatação da instância atual usando as convenções da cultura atual.The string that results from formatting the current instance by using the conventions of the current culture.
Comentários
Esse método estático pode ser importado em C# por meio de:This static method may be imported in C# by:
using static System.FormattableString;
Dentro do escopo dessa diretiva de importação, uma cadeia de caracteres interpolada pode ser formatada na cultura atual escrevendo, por exemplo:Within the scope of that import directive, an interpolated string may be formatted in the current culture by writing, for example:
CurrentCulture($"{{ lat = {latitude}; lon = {longitude} }}");