File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change 1- #nullable disable
2-
3- using System ;
1+ using System ;
42
53namespace Simplify . System
64{
@@ -9,7 +7,7 @@ namespace Simplify.System
97 /// </summary>
108 public static class TimeProvider
119 {
12- private static ITimeProvider _currentInstance ;
10+ private static ITimeProvider ? _currentInstance ;
1311
1412 /// <summary>
1513 /// Gets or sets the current time provider.
@@ -20,7 +18,7 @@ public static class TimeProvider
2018 /// <exception cref="ArgumentNullException">value</exception>
2119 public static ITimeProvider Current
2220 {
23- get => _currentInstance ?? ( _currentInstance = new SystemTimeProvider ( ) ) ;
21+ get => _currentInstance ??= new SystemTimeProvider ( ) ;
2422 set => _currentInstance = value ?? throw new ArgumentNullException ( nameof ( value ) ) ;
2523 }
2624 }
You can’t perform that action at this time.
0 commit comments