C
csharper
While I was browsing at MSDN, at http://msdn.microsoft.com/en-us/library/bb546166.aspx
, I happen to see some community comments:
<quote>
In the above Linq query. Better performance would be achieved by using
string.Equals() with a StringComparison enumerable as below.
var matchQuery = from word in source
where string.Equals(word, searchTerm,
StringComparison.InvariantCultureIgnoreCase)
select word;
</quote>
Is this real that Equals(String, String, StringComparison) has better
performance than = ?
, I happen to see some community comments:
<quote>
In the above Linq query. Better performance would be achieved by using
string.Equals() with a StringComparison enumerable as below.
var matchQuery = from word in source
where string.Equals(word, searchTerm,
StringComparison.InvariantCultureIgnoreCase)
select word;
</quote>
Is this real that Equals(String, String, StringComparison) has better
performance than = ?