codeanalyzers icon indicating copy to clipboard operation
codeanalyzers copied to clipboard

U2U Consult Performance Analyzers for C#

Results 7 codeanalyzers issues
Sort by recently updated
recently updated
newest added

Code snippet: ````C# MethodConsumer.Consume(Implementation.Instance.Method); sealed class Implementation { internal static Implementation Instance = new Instance(); private Implementation() {} internal void Method() { // do something } } ```` Class `Implementation`...

The following code triggers U2U1009 on `ButtonClicked`, however it is inevitable since the `async` method is an event handler. ````C# using System; using System.Windows.Controls; class C { public C() {...

Hello, it seems that for this issue there is a missing documentation, it would be good if you could add it. Thanks for your hard work

Clicking from VS brings me to a 404 here: https://github.com/u2uconsult/codeanalyzers/blob/master/docs/U2U1211.md

[Warning: U2U1006: Await tasks correctly](https://github.com/u2uconsult/codeanalyzers/blob/master/docs/U2U1006.md) I think you know about exception handling with asynchronous state machine using but just in case: Source code: ``` csharp private async Task TaskWithAwait() {...

Consider the following LINQ expression: ```c# noGuidObjects.Select(nio => new IdObject { Id = Guid.NewGuid(), Data = nio.Data }); ``` Version 3.8.13 of the extension suggests that I `"Consider extracting the...