/ Published in: C#
Expand |
Embed | Plain Text
public static byte[] ToByteArray(string str) { return encoding.GetBytes(str); }
Comments
Subscribe to comments
You need to login to post a comment.
Anthony on 06/17/08
9 people have marked this snippet as a favorite
jimfred
umang_nine
ddevening
itsvetkov
vali29
ethedy
khouser
tonicglop
ovuncgursoy
public static byte[] ToByteArray(string str) { return encoding.GetBytes(str); }
Subscribe to comments
You need to login to post a comment.
Sweet - probably the cleanest one I've found. Thanks