Guest User

Untitled

a guest
Feb 25th, 2018
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. for (int index = 0; length = map.length; index < length; ++index)
  2. {
  3. StringInt pair = map[index]; // 27 ticks
  4. string key1 = map[index].StringValue; // 539 ticks
  5. string key2 = pair.StringValue; // 534 ticks -- just testing this
  6. if (string.Equals(key1,target, StringComparison.OrdinalIgnoreCase)) //115 ticks
  7. return pair.IntegerValue; // 530 ticks
  8.  
  9. return -1; // 19 ticks
  10. }
Add Comment
Please, Sign In to add comment