Table of Contents

IsGuid Method

Definition

Namespace
Cuemon.Extensions
Assemblies
Cuemon.Extensions.Core.dll
Source
src/Cuemon.Extensions.Core/StringExtensions.cs

IsGuid(string, GuidFormats)

Determines whether the specified value has a valid format of a Guid.

public static bool IsGuid(this string value, GuidFormats format = GuidFormats.D | GuidFormats.B | GuidFormats.P)

Parameters

value string

The string to extend.

format GuidFormats

A bitmask comprised of one or more GuidFormats that specify how the GUID parsing is conducted.

Returns

bool

true if the specified value has a format of a Guid; otherwise, false.