Use TimeSpan.Zero
ProprietaryReplace new TimeSpan(0) and TimeSpan.FromX(0) with TimeSpan.Zero. The static TimeSpan.Zero field is more readable and avoids unnecessary object creation.
OpenRewrite. Recipes. CSharp. CodeQuality. Simplification. UseTimeSpanZeromod run . --recipe= OpenRewrite. Recipes. CSharp. CodeQuality. Simplification. UseTimeSpanZeroInstall it once, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.