Skip to content

Example 3 - "CurrentCulture" is specific to "en-US" #21610

@gewarren

Description

@gewarren

Issue moved from dotnet/docs.fr-fr#114


From @Daynvheur on Thursday, September 17, 2020 2:40:02 PM

Hello,

The third example on this page features a NumberFormatInfo set from CultureInfo.CurrentCulture.NumberFormat;.
This isn't a valid example unless CurrentCulture is set to en-US. You already states that below in "On a computer whose current culture is English - United States (en-US)".

Could you change that to specify that the example does only work on the en-US specific CultureInfo?

// Get United State's specific culture's NumberFormatInfo object.
      NumberFormatInfo nfi = CultureInfo.CreateSpecificCulture("en-US").NumberFormat;

Thanks.


Détails du document

Ne pas modifier cette section. C’est obligatoire pour docs.microsoft.com ➟ Liaison des problèmes GitHub.


Associated WorkItem - 562694

Metadata

Metadata

Labels

📌 seQUESTeredIdentifies that an issue has been imported into Quest.dotnet/svcin-prThis issue will be closed (fixed) by an active pull request.standard-library/subsvc

Type

No type

Projects

Status

🔖 Ready

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions