Parse Method
Definition
- Namespace
- Codebelt.Extensions.Asp.Versioning
- Assemblies
- Codebelt.Extensions.Asp.Versioning.dll
Parse(ReadOnlySpan<char>)
Parses the specified text into an API version by resolving aliases before using the fallback parser.
public ApiVersion Parse(ReadOnlySpan<char> text)
Parameters
textReadOnlySpan<char>The API version text to parse.
Returns
- ApiVersion
The API version that matched either an alias or the fallback parser.
Exceptions
- FormatException
textis neither a known alias nor a version accepted by the fallback parser.