RefactoringEssentials icon indicating copy to clipboard operation
RefactoringEssentials copied to clipboard

Refactoring Essentials for Visual Studio

Results 100 RefactoringEssentials issues
Sort by recently updated
recently updated
newest added
trafficstars

```cs public void Command_CanBeSerialized(Command command) where TAction : IActionWithEntity where TModel : IModel { } ``` `TDto` _is_ used here RE 5.4.0, VS 15.5.5

A very simple array equality comparison such as this: ```csharp new[] { 1, 2, 3 } == new[] { 1, 2, 3 } ``` produces this warning: > RECS0088: Replace...

Following exception was thrown by an analyzer while editing code. System.ArgumentOutOfRangeException : Specified argument was out of the range of valid values. Parameter name: index at Microsoft.CodeAnalysis.SeparatedSyntaxList`1.get_Item(Int32 index) at Microsoft.CodeAnalysis.SeparatedSyntaxList`1.First()...

Take this snippet of code. ``` public static bool SequenceEqual( this IEnumerable first, IEnumerable second, IEqualityComparer comparer = null) { if (first is ICollection firstCollection && second is ICollection secondCollection...

With regard to issue #134; inline method action. Created the inline method action for methods with simple complexity (1 line of code), unit tests for code coverage and unit tests...

For me the yellow error bar keeps re-appearing and showing me the `AddNullCheckCodeRefactoringProvider` error, no matter how many times I clicked on “Enable and ignore future errors”. After a couple...

``` public class Builder { private readonly bool _isProduction; public Builder(IsProduction isProduction) { _isProduction = isProduction(); } public delegate bool IsProduction(); public string Build() { return string.Empty; } } ```

System.NullReferenceException : Object reference not set to an instance of an object. at Microsoft.CodeAnalysis.AnnotationExtensions.WithAdditionalAnnotations[TNode](TNode node,SyntaxAnnotation[] annotations) at RefactoringEssentials.CSharp.CodeRefactorings.ToAbstractVirtualNonVirtualConversionCodeRefactoringProvider.c__DisplayClass0_0.b__8(CancellationToken t2) at RefactoringEssentials.DocumentChangeAction.GetChangedDocumentAsync(CancellationToken cancellationToken) at async Microsoft.CodeAnalysis.CodeActions.CodeAction.GetChangedSolutionAsync() at async Microsoft.CodeAnalysis.CodeActions.CodeAction.ComputeOperationsAsync() at async...

https://github.com/DustinCampbell/CSharpEssentials has a few refactorings you don't, such as interpolating string.Format. Since C# Essentials is no longer developed, it would be really convenient if you could merge those into Refactoring...

The "Add null check" C# refactoring results in an unwanted change of execution flow. In this example ```csharp bool b = true; object o = null; if (b) { int...