private static Byte ToByte(Char c, String value)
{
Byte b = (Byte)0;
String s = c.ToString();
try
{
s = c.ToString();
b = Byte.Parse(s, NumberStyles.HexNumber, CultureInfo.InvariantCulture);
}
catch (Exception)
{
throw new RemotingException(String.Format(CultureInfo.CurrentCulture, Environment.GetResourceString("Remoting_SOAPInteropxsdInvalid"), "xsd:hexBinary", value));
}
return b;
}
}