You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[API Proposal]: Implement ISpanParsable on System.Version #125026
Activity
dotnet-policy-service commentedon Mar 1, 2026
Tagging subscribers to this area: @dotnet/area-system-memory
See info in area-owners.md if you want to be subscribed.
Implement ISpanParsable<Version> and IParsable<Version>
Implement ISpanParsable<Version> and IParsable<Version>
bartonjs commentedon Sep 1, 2026
Video
Looks good as proposed
namespace System; public class Version : ICloneable, IComparable, IComparable<Version?>, IEquatable<Version?>, ISpanFormattable, IUtf8SpanFormattable, IUtf8SpanParsable<Version>, + ISpanParsable<Version> { public static Version Parse(string input); + static Version IParsable.Parse(string s, IFormatProvider? provider); public static Version Parse(ReadOnlySpan<char> input); + static Version ISpanParsable.Parse(ReadOnlySpan<char> s, IFormatProvider? provider); public static Version Parse(ReadOnlySpan<byte> utf8Text); static Version IUtf8SpanParsable<Version>.Parse(ReadOnlySpan<byte> utf8Text, IFormatProvider? provider); public static bool TryParse([NotNullWhen(true)] string? input, [NotNullWhen(true)] out Version? result); + static bool IParsable.TryParse([NotNullWhen(true)] string? s, IFormatProvider? provider, [NotNullWhen(true)] out Version? result); public static bool TryParse(ReadOnlySpan<char> input, [NotNullWhen(true)] out Version? result); + static bool ISpanParsable.TryParse(ReadOnlySpan<char> s, IFormatProvider? provider, [NotNullWhen(true)] out Version? result); public static bool TryParse(ReadOnlySpan<byte> utf8Text, [NotNullWhen(true)] out Version? result); static bool IUtf8SpanParsable<Version>.TryParse(ReadOnlySpan<byte> utf8Text, IFormatProvider? provider, [NotNullWhen(true)] out Version? result); }