deepsourcestatus / test-repository

Use Guid.Empty to create an empty GUID CS-R1007
Anti-pattern
Critical
7 months ago7 months old
Consider using Guid.Empty instead of new Guid() for an empty Guid
 57
 58        // CS-R1007: Use `Guid.Empty` instead.
 59        // https://deepsource.io/directory/analyzers/csharp/issues/CS-R1007
 60        var guid = new Guid(); 61
 62        var s1 = "alpha";
 63        var s2 = "Alpha";