public static byte[] ToBuffer(string hexString) { if (hexString == null) throw new ArgumentNullException("hexString"); return ToBuffer(hexString, 0, hexString.Length); } public static byte[] ToBuffer(string hexString, int offset, int count)