19 references to TimeSpanFormat
System.Private.CoreLib (19)
src\libraries\System.Private.CoreLib\src\System\Diagnostics\CodeAnalysis\StringSyntaxAttribute.cs (1)
66
public const string TimeSpanFormat = nameof(
TimeSpanFormat
);
src\libraries\System.Private.CoreLib\src\System\TimeSpan.cs (18)
737
public static TimeSpan ParseExact(string input, [StringSyntax(StringSyntaxAttribute.
TimeSpanFormat
)] string format, IFormatProvider? formatProvider)
743
public static TimeSpan ParseExact(string input, [StringSyntax(StringSyntaxAttribute.
TimeSpanFormat
)] string[] formats, IFormatProvider? formatProvider)
751
public static TimeSpan ParseExact(string input, [StringSyntax(StringSyntaxAttribute.
TimeSpanFormat
)] string format, IFormatProvider? formatProvider, TimeSpanStyles styles)
759
public static TimeSpan ParseExact(ReadOnlySpan<char> input, [StringSyntax(StringSyntaxAttribute.
TimeSpanFormat
)] ReadOnlySpan<char> format, IFormatProvider? formatProvider, TimeSpanStyles styles = TimeSpanStyles.None)
764
public static TimeSpan ParseExact(string input, [StringSyntax(StringSyntaxAttribute.
TimeSpanFormat
)] string[] formats, IFormatProvider? formatProvider, TimeSpanStyles styles)
770
public static TimeSpan ParseExact(ReadOnlySpan<char> input, [StringSyntax(StringSyntaxAttribute.
TimeSpanFormat
)] string[] formats, IFormatProvider? formatProvider, TimeSpanStyles styles = TimeSpanStyles.None)
796
public static bool TryParseExact([NotNullWhen(true)] string? input, [NotNullWhen(true), StringSyntax(StringSyntaxAttribute.
TimeSpanFormat
)] string? format, IFormatProvider? formatProvider, out TimeSpan result)
806
public static bool TryParseExact(ReadOnlySpan<char> input, [StringSyntax(StringSyntaxAttribute.
TimeSpanFormat
)] ReadOnlySpan<char> format, IFormatProvider? formatProvider, out TimeSpan result)
809
public static bool TryParseExact([NotNullWhen(true)] string? input, [NotNullWhen(true), StringSyntax(StringSyntaxAttribute.
TimeSpanFormat
)] string?[]? formats, IFormatProvider? formatProvider, out TimeSpan result)
818
public static bool TryParseExact(ReadOnlySpan<char> input, [NotNullWhen(true), StringSyntax(StringSyntaxAttribute.
TimeSpanFormat
)] string?[]? formats, IFormatProvider? formatProvider, out TimeSpan result)
821
public static bool TryParseExact([NotNullWhen(true)] string? input, [NotNullWhen(true), StringSyntax(StringSyntaxAttribute.
TimeSpanFormat
)] string? format, IFormatProvider? formatProvider, TimeSpanStyles styles, out TimeSpan result)
833
public static bool TryParseExact(ReadOnlySpan<char> input, [StringSyntax(StringSyntaxAttribute.
TimeSpanFormat
)] ReadOnlySpan<char> format, IFormatProvider? formatProvider, TimeSpanStyles styles, out TimeSpan result)
838
public static bool TryParseExact([NotNullWhen(true)] string? input, [NotNullWhen(true), StringSyntax(StringSyntaxAttribute.
TimeSpanFormat
)] string?[]? formats, IFormatProvider? formatProvider, TimeSpanStyles styles, out TimeSpan result)
850
public static bool TryParseExact(ReadOnlySpan<char> input, [NotNullWhen(true), StringSyntax(StringSyntaxAttribute.
TimeSpanFormat
)] string?[]? formats, IFormatProvider? formatProvider, TimeSpanStyles styles, out TimeSpan result)
856
public string ToString([StringSyntax(StringSyntaxAttribute.
TimeSpanFormat
)] string? format) => TimeSpanFormat.Format(this, format, null);
857
public string ToString([StringSyntax(StringSyntaxAttribute.
TimeSpanFormat
)] string? format, IFormatProvider? formatProvider) => TimeSpanFormat.Format(this, format, formatProvider);
859
public bool TryFormat(Span<char> destination, out int charsWritten, [StringSyntax(StringSyntaxAttribute.
TimeSpanFormat
)] ReadOnlySpan<char> format = default, IFormatProvider? formatProvider = null)
863
public bool TryFormat(Span<byte> utf8Destination, out int bytesWritten, [StringSyntax(StringSyntaxAttribute.
TimeSpanFormat
)] ReadOnlySpan<char> format = default, IFormatProvider? formatProvider = null)