Most voted "resharper" questions
13 questions
Sort by count of
-
63
votes3
answers24262
viewsWhat is the difference between Ienumerable, Iqueryable and List?
What’s the difference between Ienumerable, Iqueryable and List no . NET? When it’s best to use one or the other? Why does Resharper suggest that I modify the return of that function, for example,…
-
46
votes2
answers13820
viewsDifferences between If and ternary operator ?:
There is a difference in performance between using an if and a ternary operator in C#? Utilise Resharper (Productivity tool for VS), he insists that the ternary operator is better but doesn’t…
-
8
votes2
answers576
viewsNotice: "Possible Multiple enumeration of Ienumerable"
I was doing some operations where I use collections. In one of these I needed to take a break (range) of numbers and I did the following: var range = Enumerable.Range(0, 4); And then I tried to do…
-
8
votes2
answers1281
viewsGood practices in declaring variables in a for
I’ve been making use of Resharper lately and I’ve enjoyed the experience of using it, but something’s been puzzling me. At times he suggests that certain variables be declared within some scopes, as…
-
4
votes1
answer11696
viewsHow to resume default settings in the Visual Studio editor?
Was using the Resharper in trial period and after the end of trial time I did not want to acquire and then uninstalled by Control Panel / Programs and Resources, as I found no option in the Visual…
-
4
votes1
answer364
viewsHow to set Resharper to NOT add Summary comments
When using the Resharper (Stylecop) 'Remove Unused Directives in File' or 'Remove Redundant Code in File' function to delete a library from my project, Resharper removes it, but adds comments…
-
4
votes2
answers960
viewsWhat is the purpose of the 'Let' statement in a LINQ query?
I have the following LINQ query: var source = from em in query select new { Id = em.UniqueID, Data = em.Data == DateTime.MinValue ? "" : em.Data.Value.ToString("dd/MM/yy HH:mm") }; The estate Data…
-
3
votes1
answer67
viewsRemove namespace or full names
My question is if there is any shortcut, command or Visual Studio function that removes namespace or full class names, for example: for you to add a Data Annotation without doing a using vc you have…
-
3
votes2
answers8139
viewsShortcut to create constructor with parameters
Is there a shortcut in Visual Studio, which creates a constructor, with all attributes created in the class? class Alimento { public int ID { get; set; } public string Titulo { get; set; } public…
c# visual-studio visual-studio-2012 builder resharperasked 9 years, 5 months ago Eduardo F. Santos 449 -
2
votes1
answer138
viewsWhat does "Inconsistent modifiers style" mean in Resharper?
Resharper is suggesting the following change in code: Obs: To classe Pagamento has public methods. Why the suggestion internaland not public?…
-
2
votes1
answer34
viewsSearch broken links(path) in the project in Visual Studio
I have a web project in Visual Studio 2012 and would like to know if there was any way to scan the code for paths to files that are not certain and also identify files that are not used. For…
-
2
votes1
answer50
viewsAlert Resharper Access to modified closure
Implicitly captured closures or Access to modified closure It is a kind of warning that the Resharper shows in the code below, I would like to better understand this type of alert and what kind of…
-
1
votes1
answer110
viewsCode line in Unit Test that is not accepted by code coverage
I have a test routine where a certain line of code is not accepted by the coverage. This is a test to return Defaultvalue since the object calling it is null. This is the method being tested public…