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
valuestringThe string to parse. A null string gives no value.
formatstringThe layout
valuemust be in:N,D,B,PorX.
Returns
- Maybe<Guid>
A Maybe<T> containing the parsed value, and one containing no value if
valueis not in that layout.
Remarks
Wraps TryParseExact(string, string, out Guid), which allows no whitespace on each side.