FormattableString.CurrentCulture(FormattableString) Method
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.
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
Parameters
- formattable
- FormattableString
The string to be formatted.
Returns
The string that results from formatting the current instance by using the conventions of the current culture.
Remarks
This static method may be imported in C# or F# by:
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} }}"
Applies to
ทํางานร่วมกับเราใน GitHub
แหล่งที่มาสำหรับเนื้อหานี้สามารถพบได้บน GitHub ซึ่งคุณยังสามารถสร้างและตรวจสอบปัญหาและคำขอดึงข้อมูลได้ สำหรับข้อมูลเพิ่มเติม ให้ดูคู่มือผู้สนับสนุนของเรา