Internationalization and localization tools


Culture-Sensitive C# Method

using System

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

public static byte ToByte(Object value, IFormatProvider provider);

public static byte ToByte(string value, IFormatProvider provider);

Internationalization (I18n) Method Overview

The ToByte method converts the passed in parameter to an equivalent 8-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