I have a byte[] and I want to extract a portion of the array and convert it to a string. I want to use LINQ and to do it in one line. This was the best I could find, but it fails me.
String id = new String(payload.Skip(60).Take(92-60+1).ToString());
to extract payload[60] to payload[92] and convert it to a string. Is there a better way? And I’m getting some errors with this syntax still..
No linq is necessary. ASCIIEncoding.GetString