Introduce api for prerelease and buildmetadata segments #1
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Curretly the PreRelase and BuildMeatData is exposed as nullable string which is fine for basic interaction. But when you need to extract information from these you have to manually split the string and extract the segments. Each of the Properties is essentially a list separated with a
..To make it easier to interact with the segments we should introduce a Value type wrapper for these strings. The type should be an implicit string but have more functionality. This includes the following:
IReadOnlyList<string>Countof the segments (satisfied byIReadOnlyList<string>)IReadOnlyList<string>)IEnumerable<string>)IsEmptyproperty to check if the type is empty as it's going to be a value type. The value type should then not be nullable in theSemanticVersionThe api should orient itself on the
StringValuesfrom Microsoft.Extensions.Primitives