Advertisement
Guest User

Untitled

a guest
Feb 20th, 2019
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.96 KB | None | 0 0
  1. String print = "8A9B485ECDC56B6E0FD023D6994A57EEC49B0717";
  2. String newPrint = thumbprint.Trim().Replace(" ", "").ToUpper();
  3.  
  4. print
  5. "8A9B485ECDC56B6E0FD023D6994A57EEC49B0717"
  6. newPrint
  7. "‎8A9B485ECDC56B6E0FD023D6994A57EEC49B0717"
  8. String.Compare(print, newPrint);
  9. 0
  10. print == newPrint
  11. false
  12. print.Equals(newPrint)
  13. false
  14.  
  15. print.Length
  16. 40
  17. newPrint.Length
  18. 41
  19. (sbyte)print[0]
  20. 56
  21. (sbyte)newPrint[0]
  22. 14
  23.  
  24. string val = "8A9B485ECDC56B6E0FD023D6994A57EEC49B0717";
  25. string val1 = "‎8A9B485ECDC56B6E0FD023D6994A57EEC49B0717";
  26. var bt = System.Text.Encoding.UTF8.GetBytes(val);
  27. var bt_1 = System.Text.Encoding.UTF8.GetBytes(val1);
  28.  
  29. 226
  30. 128
  31. 142
  32.  
  33. void TestString()
  34. {
  35. String print = "8A9B485ECDC56B6E0FD023D6994A57EEC49B0717";
  36. String newPrint = print.Trim().Replace(" ", "").ToUpper();
  37. Trace.TraceInformation("Strings are equal = {0}", (print == newPrint) && (print.Equals(newPrint)));
  38. Debug.Assert(print == newPrint);
  39. Debug.Assert(print.Equals(newPrint));
  40. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement