ToUpperInvariant
A string method that returns an upper-case copy using culture-independent rules, so the result is the same on every machine.
In more detail
Culture-sensitive upper-casing can surprise you, for example with the Turkish dotted i. Use the invariant version for codes and identifiers such as a SKU.
Example
"wid-7".ToUpperInvariant() // "WID-7"Related terms
- string — The type for text values, such as a name or an email address.
Taught in
- The C# Language: Types, Variables, and Flow Control — Modern .NET Core, C# & Enterprise Microservices
- Querying, Change Tracking, and Saving Data — Modern .NET Core, C# & Enterprise Microservices