Get the bytes of byte[] as string
Hi, I have a byte[] like
byte[] arr = new byte[] {1,2,3}
is there a way to get those 1,2,3 or even better new byte[] {1,2,3}
.
For more context, what I'm trying to do is, I'm source generating for Roslyn and adding fields to the source code via a method implemented as
I want to call
3 Replies
just call tostring on each byte
that... actually makes sense lol thanks
you could also do
string.Join()