Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- String print = "8A9B485ECDC56B6E0FD023D6994A57EEC49B0717";
- String newPrint = thumbprint.Trim().Replace(" ", "").ToUpper();
- print
- "8A9B485ECDC56B6E0FD023D6994A57EEC49B0717"
- newPrint
- "8A9B485ECDC56B6E0FD023D6994A57EEC49B0717"
- String.Compare(print, newPrint);
- 0
- print == newPrint
- false
- print.Equals(newPrint)
- false
- print.Length
- 40
- newPrint.Length
- 41
- (sbyte)print[0]
- 56
- (sbyte)newPrint[0]
- 14
- string val = "8A9B485ECDC56B6E0FD023D6994A57EEC49B0717";
- string val1 = "8A9B485ECDC56B6E0FD023D6994A57EEC49B0717";
- var bt = System.Text.Encoding.UTF8.GetBytes(val);
- var bt_1 = System.Text.Encoding.UTF8.GetBytes(val1);
- 226
- 128
- 142
- void TestString()
- {
- String print = "8A9B485ECDC56B6E0FD023D6994A57EEC49B0717";
- String newPrint = print.Trim().Replace(" ", "").ToUpper();
- Trace.TraceInformation("Strings are equal = {0}", (print == newPrint) && (print.Equals(newPrint)));
- Debug.Assert(print == newPrint);
- Debug.Assert(print.Equals(newPrint));
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement