Internationalization and localization tools


C# Type Conversion

using System.ComponentModel

public Object ConvertFromString(string text);

public Object ConvertFromString(ITypeDescriptorContext context, string text);

public Object ConvertFromString(ITypeDescriptorContext context, CultureInfo culture, string text);

Internationalization (I18n) Method Overview

The ConvertFromString method converts the given text to an object, using the specified context and culture information.

For more information see Microsoft's MSDN online documentation.

I18n Issues

Pass in CultureInfo to ensure that any culture-dependent conversion is done properly. If you determine that the call is i18n-safe, you can use Globalyzer's Ignore Comment functionality to ensure that it isn't picked up in a subsequent scan.

C# Type Conversions

 

Lingoport internationalization and localization services and software