KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I've got a program written in c# where there are a lot of comparisons between ints and strings. So for performance reasons, I would just like to know which is more efficient? If we have: int a = 5; string b = "5"; if(a == int.Parse(b)) { } OR if(a.ToString() == b) { }
Tags (comma-separated)
Save Edits
Cancel