6 references to ToTimeSpan
Microsoft.AspNetCore.Components (2)
BindConverter.cs (2)
606
return DateTime.MinValue.Add(value.
ToTimeSpan
()).ToString(format, culture ?? CultureInfo.CurrentCulture);
650
return DateTime.MinValue.Add(value.Value.
ToTimeSpan
()).ToString(format, culture ?? CultureInfo.CurrentCulture);
System.Text.Json (4)
System\Text\Json\Serialization\Converters\Value\TimeOnlyConverter.cs (4)
75
Debug.Assert(TimeOnly.MinValue.
ToTimeSpan
() <= timespan && timespan <= TimeOnly.MaxValue.
ToTimeSpan
());
83
bool result = Utf8Formatter.TryFormat(value.
ToTimeSpan
(), output, out int bytesWritten, 'c');
93
bool result = Utf8Formatter.TryFormat(value.
ToTimeSpan
(), output, out int bytesWritten, 'c');