Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ReSharper Code Cleanup

Tags:

c#

resharper

Is there a way to tell ReSharper to use the String and Int64 type names when a field or method is used on the type ('static-ally'), but string and long for variable initialization?

Examples:

string name = "@user";
// but
int compResult = String.Compare(a, b, ...);

long x = 0;
// but
long x = Int64.Parse(s);
like image 351
Minustar Avatar asked May 12 '12 23:05

Minustar


1 Answers

There is currently no ReSharper option to prefer String over string.

This same question was recently asked on their community board.

like image 66
nivlam Avatar answered Oct 06 '22 01:10

nivlam