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)
743
public static TimeSpan ParseExact(string input, [StringSyntax(StringSyntaxAttribute.
TimeSpanFormat
)] string format, IFormatProvider? formatProvider)
749
public static TimeSpan ParseExact(string input, [StringSyntax(StringSyntaxAttribute.
TimeSpanFormat
)] string[] formats, IFormatProvider? formatProvider)
757
public static TimeSpan ParseExact(string input, [StringSyntax(StringSyntaxAttribute.
TimeSpanFormat
)] string format, IFormatProvider? formatProvider, TimeSpanStyles styles)
765
public static TimeSpan ParseExact(ReadOnlySpan<char> input, [StringSyntax(StringSyntaxAttribute.
TimeSpanFormat
)] ReadOnlySpan<char> format, IFormatProvider? formatProvider, TimeSpanStyles styles = TimeSpanStyles.None)
770
public static TimeSpan ParseExact(string input, [StringSyntax(StringSyntaxAttribute.
TimeSpanFormat
)] string[] formats, IFormatProvider? formatProvider, TimeSpanStyles styles)
776
public static TimeSpan ParseExact(ReadOnlySpan<char> input, [StringSyntax(StringSyntaxAttribute.
TimeSpanFormat
)] string[] formats, IFormatProvider? formatProvider, TimeSpanStyles styles = TimeSpanStyles.None)
802
public static bool TryParseExact([NotNullWhen(true)] string? input, [NotNullWhen(true), StringSyntax(StringSyntaxAttribute.
TimeSpanFormat
)] string? format, IFormatProvider? formatProvider, out TimeSpan result)
812
public static bool TryParseExact(ReadOnlySpan<char> input, [StringSyntax(StringSyntaxAttribute.
TimeSpanFormat
)] ReadOnlySpan<char> format, IFormatProvider? formatProvider, out TimeSpan result)
815
public static bool TryParseExact([NotNullWhen(true)] string? input, [NotNullWhen(true), StringSyntax(StringSyntaxAttribute.
TimeSpanFormat
)] string?[]? formats, IFormatProvider? formatProvider, out TimeSpan result)
824
public static bool TryParseExact(ReadOnlySpan<char> input, [NotNullWhen(true), StringSyntax(StringSyntaxAttribute.
TimeSpanFormat
)] string?[]? formats, IFormatProvider? formatProvider, out TimeSpan result)
827
public static bool TryParseExact([NotNullWhen(true)] string? input, [NotNullWhen(true), StringSyntax(StringSyntaxAttribute.
TimeSpanFormat
)] string? format, IFormatProvider? formatProvider, TimeSpanStyles styles, out TimeSpan result)
839
public static bool TryParseExact(ReadOnlySpan<char> input, [StringSyntax(StringSyntaxAttribute.
TimeSpanFormat
)] ReadOnlySpan<char> format, IFormatProvider? formatProvider, TimeSpanStyles styles, out TimeSpan result)
844
public static bool TryParseExact([NotNullWhen(true)] string? input, [NotNullWhen(true), StringSyntax(StringSyntaxAttribute.
TimeSpanFormat
)] string?[]? formats, IFormatProvider? formatProvider, TimeSpanStyles styles, out TimeSpan result)
856
public static bool TryParseExact(ReadOnlySpan<char> input, [NotNullWhen(true), StringSyntax(StringSyntaxAttribute.
TimeSpanFormat
)] string?[]? formats, IFormatProvider? formatProvider, TimeSpanStyles styles, out TimeSpan result)
862
public string ToString([StringSyntax(StringSyntaxAttribute.
TimeSpanFormat
)] string? format) => TimeSpanFormat.Format(this, format, null);
863
public string ToString([StringSyntax(StringSyntaxAttribute.
TimeSpanFormat
)] string? format, IFormatProvider? formatProvider) => TimeSpanFormat.Format(this, format, formatProvider);
865
public bool TryFormat(Span<char> destination, out int charsWritten, [StringSyntax(StringSyntaxAttribute.
TimeSpanFormat
)] ReadOnlySpan<char> format = default, IFormatProvider? formatProvider = null)
869
public bool TryFormat(Span<byte> utf8Destination, out int bytesWritten, [StringSyntax(StringSyntaxAttribute.
TimeSpanFormat
)] ReadOnlySpan<char> format = default, IFormatProvider? formatProvider = null)