Share via


Globalization Rules rule set for managed code

You can use the Microsoft Globalization Rules rule set to focus on problems that might prevent data in your application from appearing correctly in different languages, locales, and cultures. You should include this rule set if your application is localized, globalized, or both.

Rule

Description

CA1300

Specify MessageBoxOptions

CA1301

Avoid duplicate accelerators

CA1302

Do not hardcode locale specific strings

CA1303

Do not pass literals as localized parameters

CA1304

Specify CultureInfo

CA1305

Specify IFormatProvider

CA1306

Set locale for data types

CA1307

Specify StringComparison

CA1308

Normalize strings to uppercase

CA1309

Use ordinal StringComparison

CA2101

Specify marshaling for P/Invoke string arguments