public static FromHexString ( string hex ) : byte[] | ||
hex | string | |
Результат | byte[] |
public void _01FF_returns_1_255() { ByteArrayExtensions.FromHexString("01FF").ShouldEqual(new byte[] { 1, 255 }); }
public void _01_returns_1() { ByteArrayExtensions.FromHexString("01").ShouldEqual(new byte[] { 1 }); }