Open yaakov-h opened 2 years ago
i.e.:
"abc def ghi jkl".Split(' ')[0]
No point allocating substrings (plus the containing array) that all get immediately discarded.
This one might need some flow analysis:
var bits = key.Split('|'); return bits[0];
Unless we just want to ban string.Split entirely, but that idea doesn't sit well with me.
string.Split
i.e.:
No point allocating substrings (plus the containing array) that all get immediately discarded.