Internationalization and localization tools


Culture-Sensitive C# Method

using System

public static ushort ToUInt16(bool value);
public static ushort ToUInt16(byte value);
public static ushort ToUInt16(char value);
public static ushort ToUInt16(DateTime value);
public static ushort ToUInt16(decimal value);
public static ushort ToUInt16(double value);
public static ushort ToUInt16(short value);
public static ushort ToUInt16(int value);
public static ushort ToUInt16(long value);
public static ushort ToUInt16(Object value);
public static ushort ToUInt16(sbyte value);
public static ushort ToUInt16(float value);
public static ushort ToUInt16(string value);
public static ushort ToUInt16(string value, int fromBase);
public static ushort ToUInt16(ushort value);
public static ushort ToUInt16(uint value);
public static ushort ToUInt16(ulong value);

public static ushort ToUInt16(Object value, IFormatProvider provider);

public static ushort ToUInt16(string value, IFormatProvider provider);

Internationalization (I18n) Method Overview

The ToUInt16 method converts the passed in parameter to an equivalent 16-bit unsigned integer.

For more information see Microsoft's MSDN online documentation.

I18n Issues

To ensure that culture-sensitive formatting is done properly, call the versions that pass in the Culture (IFormatProvider).

Culture and Number Format Information

 

Lingoport internationalization and localization services and software