dotnet-api-docs
dotnet-api-docs copied to clipboard
Security Decisions
When it comes to security decisions, why shouldn't we use the invariant culture? If the invariant culture is assumed to be static (does not change with .NET framework, OS version, user settings, etc.), then why not use it here?
I understand that Ordinal might be better here it terms of performance? But what is the specific problem regarding the invariant culture? Is there are way that the invariant culture gives different results at different times?
Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
- ID: 4240c9f3-b76e-caf4-4ce0-456d96f52c66
- Version Independent ID: 53632827-9968-aba9-e9e3-8803c8c39779
- Content: CultureInfo.InvariantCulture Property (System.Globalization)
- Content Source: xml/System.Globalization/CultureInfo.xml
- Product: dotnet-api
- GitHub Login: @dotnet-bot
- Microsoft Alias: dotnetcontent