deepsourcestatus / test-repository

null is being assigned to an entity that is non-nullable CS-W1028
Anti-pattern
Major
8 months ago8 months old
null assigned to non-nullable
 49
 50        // CS-R1047: Use `T?` instead of `Nullable<T>`.
 51        // https://deepsource.io/directory/analyzers/csharp/issues/CS-R1047
 52        Nullable<int> i = null; 53
 54        // CS-R1024: Use `null-coalescing` operator, i.e. rewrite as `i ?? 1`.
 55        // https://deepsource.io/directory/analyzers/csharp/issues/CS-R1024