Resharper Split String literal

Posted by Ismael on Stack Overflow See other posts from Stack Overflow or by Ismael
Published on 2012-11-29T10:57:52Z Indexed on 2012/11/29 11:04 UTC
Read the original article Hit count: 298

Filed under:
|
|

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.

© Stack Overflow or respective owner

Related posts about c#

Related posts about asp.net-mvc