Utilities/HexStringArray.cs
changeset 26 0e01b63e1fdc
parent 9 e5adb0fd4917
     1.1 --- a/Utilities/HexStringArray.cs	Wed Feb 03 22:02:58 2010 +0000
     1.2 +++ b/Utilities/HexStringArray.cs	Thu Feb 04 21:19:27 2010 +0000
     1.3 @@ -47,8 +47,9 @@
     1.4      public HexStringArray(string input) {
     1.5        List<byte> list = new List<byte>();
     1.6        foreach (string str in input.Split(' ')) {
     1.7 -        if (str.Trim().Length > 0)
     1.8 -          list.Add(Convert.ToByte(str, 16));
     1.9 +        string s = str.Trim();
    1.10 +        if (s.Length > 0)
    1.11 +          list.Add(Convert.ToByte(s, 16));
    1.12        }
    1.13        array = list.ToArray();
    1.14      }