Table of Contents

Parse Method

Definition

Namespace
Codebelt.Extensions.Asp.Versioning
Assemblies
Codebelt.Extensions.Asp.Versioning.dll
Source
src/Codebelt.Extensions.Asp.Versioning/ApiVersionAliasParser.cs

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

text ReadOnlySpan<char>

The API version text to parse.

Returns

ApiVersion

The API version that matched either an alias or the fallback parser.

Exceptions

FormatException

text is neither a known alias nor a version accepted by the fallback parser.