Open
Description
Description
The rule does not raise an issue for DateTimeOffset, DateOnly, and TimeOnly objects call ToString()
.
Repro steps
var s = string.Empty;
s = new DateTime().ToString(); // FN
s = new DateTimeOffset().ToString(); // FN
s = new TimeOnly().ToString(); // FN
s = new DateOnly().ToString(); // FN
Expected behavior
An issue for S1449 should be raised.
Related information
- C#/VB.NET Plugins version: 8.49
Activity