Table of Contents

FromUri Method

Definition

Namespace
Cuemon.Text
Assemblies
Cuemon.Core.dll
Source
src/Cuemon.Core/Text/ParserFactory.cs

FromUri()

Creates a parser that converts a string, represented as an URL, to its equivalent Uri.

public static IConfigurableParser<Uri, UriStringOptions> FromUri()

Returns

IConfigurableParser<Uri, UriStringOptions>

An IConfigurableParser<TResult, TOptions> implementation.

Exceptions

ArgumentNullException

string cannot be null.

ArgumentException

string cannot be empty or consist only of white-space characters.