Internationalization and localization tools


Culture and Number Format Information

These methods are potentially locale-sensitive because in some cases they use the system default to obtain culture information. If the application is running on a server, the system default may not always be correct. In other cases the method relies on culture information that has been set via

Thread.CurrentThread.CurrentCulture = ...
The user needs to ensure that the CurrentCulture has been properly set in these cases to avoid incorrect formatting or other locale-specific behavior.

For these reasons, Globalyzer is configured by default to scan for all of them, prompting users to check each call in the source code for proper usage.

Click on a function for more information:

Append()

ArrayList.Sort()

CaseInsensitiveComparer Constructor

CaseInsensitiveHashCodeProvider()

Compare()

CompareInfo.GetCompareInfo()

CompareInfo.IndexOf()

CompareInfo.GetSortKey()

CreateCaseInsensitiveHashTable()

CreateInstance()

CreateInstanceFrom()

CreateInstanceAndUnwrap()

CreateInstanceFromAndUnwrap()

CompareTo()

Concat()

CultureInfo()

CultureInfo.CreateSpecificCulture()

CurrentCulture Property

CurrentUICulture Property

FieldBuilder.SetValue()

Insert()

String.Format()

InputLanguageChangedEventArgs()

InputLanguageChangingEventArgs()

InvokeMember()

MethodBase.Invoke()

NumberFormatInfo.CurrentInfo Property

SortedList()

Split()

ToDecimal()

ToByte()

ToDouble()

ToInt16()

ToInt32()

ToInt64()

ToLower()

ToSByte()

ToUInt16()

ToUInt32()

ToUInt64()

ToUpper()

 

 Locale-Sensitive C# Methods

 

Lingoport internationalization and localization services and software