Advertisement
Guest User

Untitled

a guest
Oct 9th, 2015
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.20 KB | None | 0 0
  1. public static class StringEncodingUtilities
  2. {
  3. public static IEnumerable<string> GetBytes(string input, Encoding encoding) =>
  4. from b in encoding.GetBytes(input)
  5. select $"U+{b:X2}";
  6. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement