StringExtensions.IsGuid method

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

IsGuid(string)

Static

Gets whether the string matches a GUID (Guid ).

public static bool IsGuid(string str)

Parameters

str String

The string to validate.

Returns

true if str matches a GUID; otherwise false.

IsGuid(string, out Guid)

Static

Gets whether the specified value matches a GUID (Guid ).

public static bool IsGuid(string value, Guid result)

Parameters

value String

The value to check.

result Guid

The converted Guid value, of System.Guid.Empty if value doesn't match a GUID.

Returns

true if value matches a GUID; otherwise false.