Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- for (int index = 0; length = map.length; index < length; ++index)
- {
- StringInt pair = map[index]; // 27 ticks
- string key1 = map[index].StringValue; // 539 ticks
- string key2 = pair.StringValue; // 534 ticks -- just testing this
- if (string.Equals(key1,target, StringComparison.OrdinalIgnoreCase)) //115 ticks
- return pair.IntegerValue; // 530 ticks
- return -1; // 19 ticks
- }
Add Comment
Please, Sign In to add comment