Table of Contents

ToGuid Method

Definition

Namespace
Cuemon.Extensions
Assemblies
Cuemon.Extensions.Core.dll
Source
src/Cuemon.Extensions.Core/StringExtensions.cs

ToGuid(string, Action<GuidStringOptions>)

Converts the specified input of a GUID to its equivalent Guid structure.

public static Guid ToGuid(this string input, Action<GuidStringOptions> setup = null)

Parameters

input string

The string to extend.

setup Action<GuidStringOptions>

The GuidStringOptions which may be configured.

Returns

Guid

A Guid that is equivalent to input.

Exceptions

ArgumentNullException

input cannot be null.

ArgumentException

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

FormatException

The specified input was not recognized to be a GUID.

See Also