Property DefaultInstance
DefaultInstance
Returns an instance of this clock.
Declaration
public static AfterPaySystemClock DefaultInstance { get; }
Property Value
Type | Description |
---|---|
AfterPaySystemClock |
Remarks
The instance returned by this method is cached after the first call to reduce allocations, so all subsquent calls will receive the same shared instance. However the property is not thread-safe and two threads calling the method simultanously for the first time may receive different instances. This should not cause a problem as clients should not (and are instructed not to) compare instances or rely on shared instances.