ToGuid Method
Definition
- Namespace
- Cuemon.Extensions
- Assemblies
- Cuemon.Extensions.Core.dll
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
inputstringThe string to extend.
setupAction<GuidStringOptions>The GuidStringOptions which may be configured.
Returns
Exceptions
- ArgumentNullException
inputcannot be null.- ArgumentException
inputcannot be empty or consist only of white-space characters.- FormatException
The specified
inputwas not recognized to be a GUID.
- See Also
-
FromGuid()