26 references to ToString
Microsoft.AspNetCore.Components (4)
BindConverter.cs (4)
434return value.ToString(culture ?? CultureInfo.CurrentCulture); 439return value.ToString(culture ?? CultureInfo.CurrentCulture); 477return value.Value.ToString(culture ?? CultureInfo.CurrentCulture); 487return value.Value.ToString(culture ?? CultureInfo.CurrentCulture);
Microsoft.AspNetCore.Rewrite (1)
PatternSegments\DateTimeSegment.cs (1)
64return DateTimeOffset.UtcNow.ToString(CultureInfo.InvariantCulture);
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (1)
HeartbeatTests.cs (1)
138Assert.Equal($"As of \"{timeProvider.GetUtcNow().ToString(CultureInfo.InvariantCulture)}\", the heartbeat has been running for "
Microsoft.AspNetCore.StaticFiles (2)
HtmlDirectoryFormatter.cs (2)
145HtmlEncode(subdir.LastModified.ToString(CultureInfo.CurrentCulture))); 182HtmlEncode(file.LastModified.ToString(CultureInfo.CurrentCulture)));
Microsoft.Gen.Logging.Generated.Tests (16)
LogPropertiesTests.cs (16)
126Assert.Equal(props.P1.ToString(CultureInfo.InvariantCulture), state!.GetValue("p.P1")); 262= classToLog.CustomStructProperty.TransitiveStructProperty.DateTimeOffsetProperty.ToString(CultureInfo.InvariantCulture), 265= classToLog.CustomStructProperty.NullableTransitiveStructProperty?.DateTimeOffsetProperty.ToString(CultureInfo.InvariantCulture), 268= classToLog.CustomStructProperty.NullableTransitiveStructProperty2?.DateTimeOffsetProperty.ToString(CultureInfo.InvariantCulture), 272= classToLog.CustomStructNullableProperty?.TransitiveStructProperty.DateTimeOffsetProperty.ToString(CultureInfo.InvariantCulture), 275= classToLog.CustomStructNullableProperty?.NullableTransitiveStructProperty?.DateTimeOffsetProperty.ToString(CultureInfo.InvariantCulture), 278= classToLog.CustomStructNullableProperty?.NullableTransitiveStructProperty2?.DateTimeOffsetProperty.ToString(CultureInfo.InvariantCulture), 282= classToLog.CustomStructNullableProperty2?.TransitiveStructProperty.DateTimeOffsetProperty.ToString(CultureInfo.InvariantCulture), 285= classToLog.CustomStructNullableProperty2?.NullableTransitiveStructProperty?.DateTimeOffsetProperty.ToString(CultureInfo.InvariantCulture), 288= classToLog.CustomStructNullableProperty2?.NullableTransitiveStructProperty2?.DateTimeOffsetProperty.ToString(CultureInfo.InvariantCulture), 396= structToLog.TransitiveStructProperty.DateTimeOffsetProperty.ToString(CultureInfo.InvariantCulture), 399= structToLog.NullableTransitiveStructProperty?.DateTimeOffsetProperty.ToString(CultureInfo.InvariantCulture), 402= structToLog.NullableTransitiveStructProperty2.Value.DateTimeOffsetProperty.ToString(CultureInfo.InvariantCulture), 426= structToLog.Value.TransitiveStructProperty.DateTimeOffsetProperty.ToString(CultureInfo.InvariantCulture), 429= structToLog.Value.NullableTransitiveStructProperty.Value.DateTimeOffsetProperty.ToString(CultureInfo.InvariantCulture), 432= structToLog.Value.NullableTransitiveStructProperty2?.DateTimeOffsetProperty.ToString(CultureInfo.InvariantCulture),
System.ComponentModel.TypeConverter (1)
System\ComponentModel\DateTimeOffsetConverter.cs (1)
113return dto.ToString(culture);
System.Data.Common (1)
System\Data\Common\SQLConvert.cs (1)
473return ((DateTimeOffset)value).ToString(formatProvider);