let asciiString = "abc"B;In the C#, I have to do
string value = "abc";
// Convert the string into a byte[].
byte[] asciiBytes = Encoding.ASCII.GetBytes(value);
This small syntax sugar would help me a lot when I did some programming targeting to PLC and other hardware.
No comments:
Post a Comment