Resharper Split String literal
- by Ismael
I was not lucky in my 15 minutes googling. Maybe bad luck with good keyword?
Why does the Resharper suggest spliting a string in function parameter?
Example:
From this:
return PartialView("Categorias", lista);
To this:
return PartialView("Cat" + "egorias", lista);
I checked documentation here: link
And it says:
Split string literal -
Splits string literal into two literals.
I want to discover why is this a good practice, what are the fundamental idealogic behind the scenes that achieved this practice.
I don't want to do it without knowing why...
Help is soooo appreciated.