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
Returns
- Maybe<Guid>
A Maybe<T> containing the parsed value, and one containing no value if
valuedoes 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.