StringUtils.ParseGuid method

Version 1.1.28
.NET Framework 4.8
Namespace Skybrud.Essentials.Strings
Assembly Skybrud.Essentials.dll

ParseGuid(string)

Static

Parses the specified str into an instance of Guid . If the parsing fails, the default value of Guid will be returned instead.

public static Guid ParseGuid(string str)

Parameters

str String

The string to be parsed.

Returns

An instance of Single .

ParseGuid(string, Guid)

Static

Parses the specified str into an instance of Guid . If the parsing fails, fallback will be returned instead.

public static Guid ParseGuid(string str, Guid fallback)

Parameters

str String

The string to be parsed.

fallback Guid

The fallback value that will be returned if the parsing fails.

Returns

An instance of Single .