Table of Contents

Method TryParseGuid

Namespace
SodaFlow.Functional
Assembly
SodaFlow.Functional.dll

TryParseGuid(string?)

Parses a Guid from this string, if it holds one.

[Pure]
public static Maybe<Guid> TryParseGuid(this string? value)

Parameters

value string

The string to parse. A null string gives no value.

Returns

Maybe<Guid>

A Maybe<T> containing the parsed value, and one containing no value if value does not hold one.

Remarks

Wraps TryParse(string, out Guid), so any of the framework's one of the layouts that it recognizes. Use TryParseGuidExact(string?, string) to insist on one of them.