deepsourcestatus / test-repository

Consider rewriting null checks and casts using pattern matching CS-R1056
Anti-pattern
Major
8 months ago8 months old
Use pattern matching when casting
 89        
 90        object o = new Foo();
 91        var foo = o as Foo;
 92        if (foo != null) 93        {
 94            //
 95        }