Table of Contents

Method TryParseGuidExact

Namespace
SodaFlow.Functional
Assembly
SodaFlow.Functional.dll

TryParseGuidExact(string?, string)

Parses a Guid from this string in the given layout, if it holds one.

[Pure]
public static Maybe<Guid> TryParseGuidExact(this string? value, string format)

Parameters

value string

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

format string

The layout value must be in: N, D, B, P or X.

Returns

Maybe<Guid>

A Maybe<T> containing the parsed value, and one containing no value if value is not in that layout.

Remarks

Wraps TryParseExact(string, string, out Guid), which allows no whitespace on each side.